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

Can someone tell me whit wrong with this

<ul>
        <li>
          <a href="img/number-01">
            <img scr=img="img/number-01.jpg" alt="">
          </a>
        </li>
        <li>
          <a href="img/number-02">
            <img scr=img="img/number-02.jpg" alt="">
          </a>
        </li>
        <li>
          <a href="img/number-03">
            <img scr=img="img/number-03.jpg" alt="">
          </a>
        </li>
      </ul>

1 Answer

Stone Preston
Stone Preston
42,016 Points

the task states: 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!.

so you dont need any anchor tags inside your li, just img tags. your image tags also have several errors in your src attribute. you mispelled src as scr and also named the images incorrectly (they are named numbers-01.jpg, numbers-02.jpg, and numbers-06.jpg not number-02.jpg etc (missing an s on all the names)

you have

<img scr=img="img/number-02.jpg" alt="">

you need

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

so just fix those issues ( remove link tags and fix img tag errors) for all three of your list items