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 Build a Simple Website Text Editors and HTML Images and Lists

My image isnt appearing

I am running windows 7 ultimate and i do everything with the folder and image for the logo but it is not appearing PLease help

6 Answers

Trevor Wood
Trevor Wood
17,828 Points

Here's an example of what my img code looks like in HTML

<img src="/img/logo.png" alt="logo">

If you can post your code I'm sure we could figure out what the problem is.

My code is <img src"/img/logo.gif" alt=DON Clan">

My code is <img src"/img/logo.gif" alt=DON Clan">

My code is <img src"/img/logo.gif" alt=DON Clan">

My code is <img src"/img/logo.gif" alt=DON Clan">

My code is <img src"/img/logo.gif" alt=DON Clan">

Branko Veljkovic
Branko Veljkovic
6,684 Points

can you share source code?

Branko Veljkovic
Branko Veljkovic
6,684 Points

try

<img src="img/logo.png" alt="logo">
Philip Allen
Philip Allen
8,171 Points

Hello John, Can you post your html image markup?

The most likely cause is the image location. If your code looks like this

            <img src="logo.jpg">
      ```  the logo.jpg file has to be in the same directory as your html file. 

If your code is like this then the logo.jpg file has to be in a directory called img, the img directory has to be in same parent folder as your html file.
```html
            <img src="img/logo.jpg">
            ``` 

I have a .png file as my logo it is located in a file on my desktop named don website inside is a img folder with the logo in it and seperated is the index chrome file im using the code <img src="img/logo.png>

Philip Allen
Philip Allen
8,171 Points

You don't need the first /

Philip Allen
Philip Allen
8,171 Points

If I understand correctly your file structure is like this.

don website/index.html don website/img/logo.png

In this case your code should be <img src="img/logo.png">