Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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