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

Liz Jackman
Liz Jackman
902 Points

I cannot pass this challenge. I went back and checked the video. The code I'm using is below.

<ul>
        <li>
          <a href="img/numbers-01.jpg">
               <img src="img/numbers-01.jpg" alt="">
               <p>Experimentation with color and texture.</p>
         </a>
         </li>
 </ul>
Kenneth Love
Kenneth Love
Treehouse Guest Teacher

Ah, I see. I edited your first post to show all of the code.

4 Answers

The code challenge 1 is to create unordered list with three list item inside section element. You can do that like below.

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

The code challenge 2 to inset image element inside each list item.

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

The source of the images are sitting inside a folder called img. So I referenced them in src attribute.

I hope I answered your question.

Liz Jackman
Liz Jackman
902 Points

Thank you! I have been trying that forever. I guess I needed to use img src and no </a>. Thank you!

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

The code challenge wants you to just have the list items and the images, no captions or anything else.

Liz Jackman
Liz Jackman
902 Points

I also tried this with no success: <ul> <li><a href="img/numbers-01.jpg"></a></li> <li><a href="img/numbers-02.jpg"></a></li> <li><a href="img/numbers-06.jpg"></a></li> </ul>

Tristan Swartz
Tristan Swartz
4,290 Points

although it says ypu dont need the "alt" part you need it but it needs to be blank