Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Basics Images, Text and Links Adding Images to the Page

Using Image From the Internet

I saved an image from the internet into my text editor and used the file path to it in my html file, but it did not show up on the website. The alt feature did, though. What do I do so the does appear on the website?

I will recommend you to create a directory with all you image. If you got for example your directory called "images". You will access your image with the following code <img src="images/yourImageName.formatt"> If you don't create a directory you will access through < img src="./yourImageName.format"

1 Answer

Steven Parker
Steven Parker
231,275 Points

I would not expect that you could successfully save an image into a text editor. You would need to use a different method to get a copy of the image, such as the "save image as..." function of your browser.