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

Unordered Lists

I've been trying to figure out how to pass the second task in this challenge, but I keep on getting stuck..

Whenever I check, the problem simply says to "*make sure to include an image tag that displays 'img/numbers-01.jpg' when I am sure that I have...

Each line of code looks like this, except for a variation on the number, Is there anything wrong with it?

    <li>
      <a href="img/numbers-01.jpg">
        <img src="img/numbers-01.jpg" alt="">
      </a>
    </li>

2 Answers

Damian Ison
Damian Ison
6,398 Points

This is the code i put in, and it worked. From looking at your code that you have done everything is right except for the </a> which is after the img src coding, move this after the <a href...></a> and it will be all good for your challenge to complete. Hope this helps

      <ul>
        <li>      
          <a href="img/numbers-01.jpg"></a>
          <img src="img/numbers-01.jpg" alt="">
        </li>
        <li>
          <a href="img/numbers-02.jpg"></a>
          <img src="img/numbers-02.jpg" alt="">
        </li>
        <li>
          <a href="img/numbers-06.jpg"></a>
          <img src="img/numbers-06.jpg" alt="">        
        </li>
      </ul>
Kevin Kenger
Kevin Kenger
32,834 Points

Hey Tara,

I think the challenge tells you not to add links, which it looks like you have. Try removing those and I think that should solve your problem!