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

Html basics on the tutorial

When i do img src="img/logo.gif" alt="Smells Like Bakin'"

The photo never comes up, i have downloaded the folder off the internet but it just comes up with the text, no image.

4 Answers

Ron McCranie
Ron McCranie
7,837 Points

It may be the path to the image you're referencing. The way you have it now it's looking for a folder called "img" within the folder that contains your html file. So the image path is relative to the html that is looking for it. It's hard to say what's wrong unless I knew where the image was in the folder structure.

I have fixed the problem :) Thanks for the help Ron

img src="websitewaters-island01-stage02/img/logo.gif" alt="Smells Like Bakin'" is what i needed.

I downloaded the folder off the internet. The folder is called

"websitewaters-island01-stage02" .

Inside the folder is another folder called "img".

Inside img is the the picture i need to use "logo.gif"

James Barnett
James Barnett
39,199 Points

@Furquan -

There's a great blog post over on CSS Tricks about how paths works that should help clarify things.