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

Tell me what i did wrong for the code challenge

I need help with the code challenge for creating html content stage 3 task 2. The error i get is Make sure you include an image tag that displays "img/numbers-01.jpg".

my code is

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

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

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

</li>

please tel me what im doing wrong.

3 Answers

Calvin Nix
Calvin Nix
43,828 Points

Hey Braedon,

Remove the anchor tags that you gave surrounding your images.

Your list item should look like this.

e.g.

        <li><img src="pathToImage.jpg" alt=""></li>

Re-read the challenge description: Leave the alt attributes blank, and don’t add any captions or links. Just the images!

You've added links to the images.

Thanks, that really helped