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
Deborah Williamson
2,997 PointsCan anyone see what's wrong with this?
My images wont show in the browser. Any suggestions?
<section>
<ul>
<li><img src="numbers-01.jpg" alt=""></li>
<li><img src="numbers-02.jpg" alt=""></li>
<li><img src="numbers-06.jpg" alt=""></li>
</ul>
</section>
3 Answers
Kate Hoferkamp
5,205 PointsThe code you have looks correct, it must be an issue with your where the images are located in your file structure, relative to the html file. If your images are in their own folder, you first have to enter the image folder t hen the picture: 'img/numbers-01.jpg'. If the html itself is in a folder, you first have to back out of that folder to go into the image photo: '../img/numbers-01.jpg'.
Hope that helps!
Luke Glazebrook
13,564 PointsHi Deborah! Nick suggests that you put the images into a folder called 'img', if you have done this then you will need to tell the src attribute this so it knows where to find them. The following code should work perfectly.
<img src="img/numbers-01.jpg" alt="">
Sara Read
10,476 PointsAre the images in a folder? if so the src should be "foldername/numbers-01.jpg"