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 Structure the Image Gallery

Brice Franks
Brice Franks
1,488 Points

Why isn't image showing up?

I added the correct tag to allow the image from my files to view but it is not showing up. Did I do something wrong?

  <ul>
      <li>
        <img src="img/numbers-01.jpg" alt="">
      </li>
 </ul>

Brice Franks

Designer

Portfolio About Contact

Ā© Brice Franks 2017

Andrew Hoskins
Andrew Hoskins
4,888 Points

HI Brice,

It does look correct based on the screenshot that you provided. With only that info, a shot in the dark thought is to double check two things: 1st - that the photo is actually in the folder called 'img' and the folder name is correct. 2nd - confirm once more that the spelling of the image title is correct (example, it is not numbers_01.jpg)

Hope this helps.

2 Answers

Daniel Kurowski
Daniel Kurowski
11,231 Points

You could also check if the path to the file is correct (right directory) and if the file format is correct.

Fuad B
Fuad B
458 Points

Or check that your index.html file is not inside your img folder, to make sure your tree structure of your files is correct.