Adding an Image from a Url - Html

I am having trouble displaying an image from the internet on my html page.

The line is:

<img src="" alt="pic" />

What is wrong with it? Does that only work with images that are on my disk?

Thank you

4

1 Answer

Based on the URL you've presented in the comments above, my guess is that you're not actually linking to an image, you're liking to a web page but mistaking it for an image.

For instance, the url you provided:

Is the URL of a webpage showing the image, not the image itself.

Make sure you're linking to the actual image itself:

<img src="" 
alt="Cheetah!" />
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest