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

ruth shapiro
ruth shapiro
12,783 Points

Having trouble with images

I put this code in the un-ordered list but no real picture showed up in the preview. Do you know why that is. I have had previous unsuccessful experiences with relative urls for pictures on my desktop.

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

2 Answers

Stone Preston
Stone Preston
42,016 Points

the images you are trying to display need to be within an img folder thats located in the root of your project (in the same folder as your index.html file). If you have the images in a folder on your desktop or somewhere else thats not within your index.html files directory its not going to work

ruth shapiro
ruth shapiro
12,783 Points

Thank you! Got it. I had my folder there but in the incorrect place and mislabeled.

Stone Preston
Stone Preston
42,016 Points

awesome glad you got it working : )