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

I can't figure out why my images aren't displaying when I refresh to view my webpage:

<a href="img/numbers-02.jpg"> <img src="img/numbers.jpg" alt=""> <p>Urdhva Mukha Svanasana.</p> </a> </li> <li> <a href="img/numbers-06.jpg"> <img src="img/numbers-06.jpg" alt=""> <p>Three-legged dog.</p> </a> </li>
<li> <a href="img/numbers-09.jpg"> <img src="img/numbers-09.jpg" alt=""> <p>Sirsasana.</p> </a> </li> <li> <a href="img/numbers-12.jpg"> <img src="img/numbers-12.jpg" alt=""> <p>Dancers pose.</p>

2 Answers

Ben Schroeder
Ben Schroeder
22,818 Points

Does closing the img tags properly do the trick?

<img src="img/numbers-12.jpg" alt="" />

That happened to me once too! Eventually, I changed the folder name (that contained all of my photos) from img to images...then I of course changed all of the img roots in my code to say image as well (for example: img src="images/photoname.jpg"...and so on). I'm not really sure why/how that worked, but it did! You might could try that!