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
Andres Ancira
1,391 PointsTrouble 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
James Barnett
39,199 PointsSounds 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:
Does that help?
If not, you can read up about absolute vs relative paths
Andres Ancira
1,391 Pointsdesktop.
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?
Charlie Thomas
40,856 PointsAny where as long it is in the same directory as your img directory
Jeremy Hudson
582 PointsThe img folder should be in the same folder as your index.html save, or at least mine did.
Edgardo Munoz
358 PointsIm having the same issue. help!!
Charlie Thomas
40,856 PointsWhere is your index.html file?
Andres Ancira
1,391 PointsThx everybody!
