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

What's wrong with my image tag?

I really don't understand why this isn't working. I checked it with the code I have on workspaces (which I can confirm works), but I still get this error when hitting "Check work": "Make sure you include an image tag that displays "img/numbers-01.jpg".

Here's my code:

<section>
      <ul>
          <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>

       </ul>
</section>

Thanks!

You're missing the opening ul tag and you should make sure you are linking to the correct folder where the image is located. Hope that helps.

Calvin, I fixed syntax highlighting for you. You can refer to this video for how to get your code highlighted properly.

1 Answer

Calvin, remove the links, e.g., <a href="img/numbers-01.jpg"> from each list item, and you should be good to pass the challenge.

Oh my god thank you so much for the help Dustin!! I feel really silly for forgetting that that was code for a link. Also, thanks for the video and fixing the syntax highlighting!!