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

why cant i pass this challenge? im trying to put the imgs in the li tags..

I'm trying to add images to an unordered list. I cant figure out why I can't move past this challenge..

5 Answers

Why you don't post source code? We cannot guess where you wrong.

idan ben yair
idan ben yair
10,288 Points

Hi Charles,

Can you please post your code and the question? It will help us assist you :)

Thanks!

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Charles;

This challenge seems to give several people issues, so don't get discouraged!

The challenge is two steps. The first is to add an unordered list with three list items to the section element. That would look like this.

<section>
   <ul>
       <li></li>
       <li></li>
       <li></li>
   </ul>
</section>

The next task is:

Inside the three new list items, add the following images from inside the img folder: "numbers-01.jpg", "numbers-02.jpg", and "numbers-06.jpg". Leave the alt attributes blank, and don’t add any captions or links. Just the images!

This seems to be where folks get stuck. Let's break down what the challenge is asking to do.

  1. Inside the new list items - whatever we are going to code is going to go inside the <li></li> tags.
  2. Add the following images - we are going to add images, so we need to use the <img> tag.
  3. From inside the img folder - whatever files we are going to put inside the <li></li> tags need to reference the img folder.
  4. The file names - that's what we'll use
  5. Leave alts, captions, links blank - cool, less typing!

Okay, so we need to put a <img src="????"> inside each of the list item tags. That sounds easy enough, right? We have the code template for the image tag, we know the file names "numbers-01.jpg", "numbers-02,jpg", and "numbers-06.jpg", and we know that before each of those file names we need to include the img folder. So the image tag for inside the first list item tag would look like:

<img src="img/numbers-01.jpg">

Does that make any sense?

Ken

Kalyn Sloan
Kalyn Sloan
292 Points

Ken, thank you, that is what I thought I did, but I will check it again to make sure. :)

Kalyn Sloan
Kalyn Sloan
292 Points

Thank you, I figured it out! :)

Kalyn Sloan
Kalyn Sloan
292 Points

This is what I have below and it is still not working, what am I missing?

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

Ken Alger
Ken Alger
Treehouse Teacher

Kalyn;

Are you including the opening < and closing > brackets on each line of code?

Ken