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

General Discussion

Problem With photos

When i add the img source it just gives me the title in a black box and no picture when opened in safari.......

<img src="img/logo.gif" alt="Smells Like Bakin'">

5 Answers

That means the image isn't loading. It's either in the wrong folder (i.e., it's not actually in the "img" folder), or it's not named correctly. I can't think of any other reason it would be showing the alt text instead of the image, it must be one of those two issues.

I have a website folder on my desktop with index.html inside and a folder that says img is this right ? sorry I'm new to this

Yeah, that should work. If you can see the index.html file next to the folder, and then click down into the folder and see that image (down one level), then that should be fine. Maybe check that the file name and file extensions (like jpg or gif) is exactly right?

This is weird because i have a desktop folder called Website, an index.html inside that and the img folder as well. It still comes up with smells like bakin in a black box. Are my folders messed up ? It is logo.gif the file name i double checked

I'm not sure. Try putting the image in the same folder as "img" and then remove the "img/" path name from the image name/path. So then all you have is

<img src="logo.gif">