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 Build a Simple Website Text Editors and HTML Images and Lists


Now first of all, I'm not on an apple. Now - img/logo.gif - doesn't load an image for me. However - file:///C:/Users/Sid/Documents/Project/img/logo.gif - does. Any way to make that as short as img/logo.gif?

3 Answers

James Barnett
James Barnett
39,199 Points

Sounds like you've got a file path issue with your images.

The way it works is that you have to put your images in the correct folder relative, to your HTML file.

Here's an example:

file directory structure example

Does that help?

If not, you can read up about absolute vs relative paths

I would like to make it to where I just put - img/logo.gif - how do I accomplish this. Where should the folder be created? Do I make a folder and just drag the html and img into that?

If I'm not mistaken, that should work. The location is relative to the HTML file. Therefore, so long as they're in the same folder, it should work. I had similar problems a few weeks ago.

Hope this helps