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

Trouble loading image

IM doing something wrong...I cant load the image to the web. by (<img> src="img/logo.gif" alt ....).

I saved the img folder @ desktop, im not sure if I have to save it in a certain folder or do src="desktop/img...?

i work with a macbook pro

help

thx

6 Answers

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

desktop.

Ok I found my big mistake. the my code started like this <img>, instead of closing it at the end. But this brings me to this q: Where should I save it?

Any where as long it is in the same directory as your img directory

The img folder should be in the same folder as your index.html save, or at least mine did.

Im having the same issue. help!!

Where is your index.html file?

Thx everybody!