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

Stanley Foss
Stanley Foss
5,755 Points

I'm not seeing the image when I preview my website. Just a small window-type icon?? Not sure if its my browser??

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

8 Answers

Joe Dayvie
Joe Dayvie
11,956 Points

Could you post the code that you used? You may have the incorrect source connected to the image. Make sure to have the correct folder/file name.

Abhijeet Das
PLUS
Abhijeet Das
Courses Plus Student 3,158 Points

Please can you post your code here and make sure ur href attribute properly link ur images folder.

Stanley Foss
Stanley Foss
5,755 Points

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

Here's the bit of code. It all looks correct. I'm pretty new at this. Thanks for any help!

Stanley Foss
Stanley Foss
5,755 Points

Well, I thought I posted the code??

Stanley Foss
Stanley Foss
5,755 Points
        <li>
          <img src="img/numbers-01.jpg" alt="">
        </li>
Joe Dayvie
Joe Dayvie
11,956 Points

The code seems to be correct. Make sure you dragged the numbers-01.jpg file into the img folder on the left hand side of your screen.

Stanley Foss
Stanley Foss
5,755 Points

Thanks for your help everyone. Yes, the .jpg file is in my img folder on the left hand side. A few months back, My cursor stopped displaying while I was using Maya 3D. I was able to make it show up again by changing the graphics display, or resolution or something?? I'll see if I change my setting back to normal, maybe that will work?

Joe Dayvie
Joe Dayvie
11,956 Points

I honestly do not know about the graphics display and such, sorry :( I took your code and replaced it with an image of mine and it worked fine.

Stanley Foss
Stanley Foss
5,755 Points

OMG! I figured it out! I had labeled my folder on the left hand side of workspace 'image' instead of 'img'. Thanks for testing out and looking at my code Joe. Good group of people on this website!

Joe Dayvie
Joe Dayvie
11,956 Points

Fantastic - Glad to hear it is solved =) There certainly are a lot of nice people on here, agreed.

Shea Knox
Shea Knox
12,254 Points

I'm having the same problem even with my folder labeled correctly. Here's my code:

<img src="img/numbers-01.jpg" alt="">
Shea Knox
Shea Knox
12,254 Points

I just tried copying all of the html onto a text document on my computer and placing it in the same folder locally with the img folder and not through the workspace and it worked correctly.

Stanley Foss
Stanley Foss
5,755 Points

Yeah, your code looks right. Glad you found a work-around. I'm new to Treehouse, not sure if there are some bugs in the system?

Joe Dayvie
Joe Dayvie
11,956 Points

While I am new to Treehouse too, I haven't had any of those problems. Anytime they mention some aspect should work it does - Odd that it doesn't work. The code is correct though so maybe it's the directory? Are you sure you placed the image into the img folder?