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 How to Make a Website Creating HTML Content Organize with Unordered Lists

img folder

hi,

i am having trouble with this objective.

<img src="image/numbers-01.jpg" alt=""> in all the list items respective to their number.

am i missing something?

5 Answers

Hi hannah,

They're not interchangeable. It has to match up with the name of the folder that contains the images. In the case of the code challenge, they are telling you that the images are stored in the img folder. So your src path must match that sub-folder name exactly as well as the filename.

If you use "images/numbers-01.jpg" then the browser is going to go looking for that image in a sub-folder named "images". It won't find the image because that folder doesn't exist.

I hope that clears it up for you.

<img src="here put link of image" />

Ok i figured it out. Here was my code:

<ul>
        <li><img src="images/numbers-01.jpg" alt=""/></li>
        <li><img src="images/numbers-02.jpg" alt=""/></li>
        <li><img src="images/numbers-06.jpg" alt=""/></li>
</ul>

what they give me in response is "Make sure you include an image tag that displays "img/numbers-01.jpg"."

is the part that says img here interchangeable with images as I put it?

thanks !

Dave McFarland
Dave McFarland
Treehouse Teacher

Hi Hannah,

Your HTML code wasn't showing up correctly. I fixed it in your post.

For the future, to put HTML/CSS/JavaScript in a forum post:

  1. hit return to create a new line and type three back tick characters ```

  2. hit return to create another new line and paste your HTML

  3. hit return and add three more back tick characters: ``` The back tick character isn't the same as the single quote -- ' -- mark; the back tick is located on the same key as the ~ on most keyboards.

Also to add correct color highlighting add the name of the language after the back ticks like this: ```CSS. Here's what CSS should look like in a forum post:

#gallery li {
  float: left;
  width: 45%;
}

is there a way to see the code for asking questions about the code? ; D

and are img and image interchangeable here? i have read things that use image instead of img in the opening tag.

In addition to what Dave posted for you, there's this post:
https://teamtreehouse.com/forum/how-to-type-code-in-the-forum

that's right, you need use javascript and jquery code, called a "slideshow".