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 How to Make a Website Creating HTML Content Add Image Gallery Content

Nicholas Lubsen
Nicholas Lubsen
342 Points

How come my image is not appearing in preview

<section> <ul> <li> <img src="images/numbers-01.jpg" alt=""> <p>Experimentation with color and texture.</p> </li> </ul> </section>

2 Answers

are you sure your folder name is "images" or "img"?

Look at your file structure.

in you're example you're saying your file path is:

images and then your image inside the images folder hence "images/image-01.jpg"

If you had another folder in your images it would be "images/otherfolder/image-01.jpg"

if there was no images folder it would be "image-01.jpg"

if the images folder was in a folder previous to the document your working on you would add ../ therefore the file path would be "../images/image-01.jpg"

Hope this helps.