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

Josh Foster
Josh Foster
696 Points

hi my images are not displaying on my web page?

here is my code: <ul> <li> <a href="img/3234__9821__henderson263_57a589cc06a90825637900.jpg"> <img src="3234__9821__henderson263_57a589cc06a90825637900.jpg" alt=""> <p> experimintation with color and texture.</p> </a> </li> <li> <a href="img/4591__4073__sturridge263_57a58a0918939019759289.jpg"> <img src="4591__4073__sturridge263_57a58a0918939019759289.jpg" alt=""> <p> experimintation with color and texture.</p> </a> </li> <li> <a href="img/5153__6114__coutinho263_55c282aa03137915649487.jpg"> <img src="3234__9821__henderson263_57a589cc06a90825637900.jpg" alt=""> <p> experimintation with color and texture.</p> </a> </li> <li> <a href="img/6944__6238__gettyimages-483025220_master.jpg"> <img src="3234__9821__henderson263_57a589cc06a90825637900.jpg" alt=""> <p> experimintation with color and texture.</p> </a> </li> <li> <a href="img/PAY-Benteke-signs-for-Liverpool.jpg"> <img src="3234__9821__henderson263_57a589cc06a90825637900.jpg" alt=""> <p> experimintation with color and texture.</p> </a> </li> </ul>

my folder is website it contains img folder and my index.html file.

i can click on the little picture icon and it open up the image.

what am i doing wrong

any help much appreciated thanks

Josh Foster Everyone is having the exact same problem.

3 Answers

Erik Nuber
Erik Nuber
20,629 Points
<ul> <li> 
<a href="img/3234__9821__henderson263_57a589cc06a90825637900.jpg"> 
<img src="img/3234__9821__henderson263_57a589cc06a90825637900.jpg" alt=""> 
<p> experimintation with color and texture.</p> </a> </li> 
</ul>

You are just missing the img/ before the src in the image tag as above.

Josh Foster
Josh Foster
696 Points

i dont understand what you mean it has img src?

Erik Nuber
Erik Nuber
20,629 Points

You have your href set up correctly ie

<a href="img/3234__9821__henderson263_57a589cc06a90825637900.jpg"> 

however, you didn't remember to do the same for your image tags

yours....

<img src="3234__9821__henderson263_57a589cc06a90825637900.jpg" alt="">

correct...

<img src="img/3234__9821__henderson263_57a589cc06a90825637900.jpg" alt="">

you just need to add img/ before each of your photos in the src