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

Smells Like Bakin' Logo Image

I've downloaded the "img" folder and saved it to desk top on my mac. The image name is "logo.gif". <img src="img/logo.gif" alt="Smells Like Bakin"> This what I typed in the text editor but the image is not coming up in the browser (Google Chrome). What am I doing wrong?

3 Answers

I believe if your img folder is on your desktop you'll need an absolute path to the image. You're currently using a relative path and I bet that is where your problem is.

Did you type in the path correctly?

It make take your good set of eyes, but it looks correct to me after double checking it a few times. This is what I typed. <img src="img/logo.gif" alt="Smells Like Bakin">

It make take your good set of eyes, but it looks correct to me after double checking it a few times. This is what I typed. <img src="img/logo.gif" alt="Smells Like Bakin">

Phil, I am unable to see any code here.

Hmm! I think if you click on edit you should see it.

Edit where? All I am able to see is your post that says, "It make take your good set of eyes, but it looks correct to me after double checking it a few times. This is what I typed.". There is no code snippet anywhere.

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

Assuming you have typed everything correctly, you should make sure that the "img" folder you have downloaded is stored within the same file that your html is saved.

As long as the "img" folder itself is in the same place as your .html file, you should just be able to type "img/logo.gif" and see it perfectly in your browser. Otherwise when saved elsewhere you must type out the entire file path of the image.

I'm not sure what's wrong Phil but I am unable to see your post. Perhaps you can put your code on paste bin or something and provide the link here?

I will double check to make sure they are both saved to my deck top. Thanks Jonathan!

Ok. But ya man if you don't have your folders setup just as the example shows you, your path will be different right.