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

Yusfu Daramay
Yusfu Daramay
166 Points

Cant see pic

I can't see the picture from my ipod. From the video, I understand the path"numbers-" , followed by a period and jpg. I thought mine would be "img src="img/ipod pics 688.jpg" alt="">. Or what am I doing wrong. Somebody help please. Thanks.

what is the name of your image file and where is it located?

4 Answers

Steven Sullivan
Steven Sullivan
11,616 Points

Where it says <img src> make sure that the folder you made on the left hand side is the same case, and spelled the same.

For instance, if you named your folder on the sidebar "image", you should have written <image src>. To make the rest of this course smooth, make sure your folder is named "img".

make sure it's the right directory for example if you're in the INDEX.html you'd do <img src="/img/mypic.jpg">

if you're in CSS you'd do <img src="../img/mypic.jpg>

the dot dot slash are to escape your current folder and go withing the img folder.

Yusfu Daramay
Yusfu Daramay
166 Points

I don't really know what you mean by name of image file but I got the pictures from my computer and each pic is called "ipod pics" followed by a number. "ipod pics 072. jpg" for example.

so if the image is on your desktop then your code should be -- <img src="ipodpics072.jpg"> , i would change the file name of your images with no spaces. Once again this code is if your image is located on your desktop