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

im trying to construct image gallery but the downloaded pictures arent working when i refresh page

i put in <img src="img/numbers-01.jpg and followed directions but when i refresh my page it doesnt show the picture. it shows a little square image with a crack through it. i dont know why its not working

Michael Caveney
Michael Caveney
50,144 Points

If I'm reading this correctly, you need to close this, put a " after the jpg and /> to close the tag.

this is what i have in my list item <img src="img/numbers-01.jpg" alt="">

http://port-80-x0235xa8e7.treehouse-app.com/ take a look at the oicture box and you will see what i mean if it will let u see this link

Gerardo Blanco
Gerardo Blanco
13,223 Points

you need to check your folder. remember that the index.html and the img folder have to be in the same level

img/imagename.jpg

img(this is the folder) imagename.jpg index.html

1 Answer

Hi Joshua,

Your image tag looks correct to me.

A few things you can check:

When you put it in did you save the page and refresh the preview?

Over on the left sidebar did you expand the "img" folder and make sure that the image files were listed there?