Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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 : )