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

adding images

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!

Can you please share the correct syntax to pass this challenge. I've tried and just can't get through. thanks

can you post what you have tried?

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

hmtl code doesnt show up in the forum unless its formatted using markdown. I formatted it for you but you can check out the tips for asking questions video on the right side of the page for a demonstration on how to format your code or read this post

2 Answers

the problem is you added links when the challenge states: Leave the alt attributes blank, and don’t add any captions or links

so try removing your links around your list items

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

</li>

thanks Stone,

I tried that as well but this time with all on one line, and it worked finally. Thanks heaps <li><img src="img/numbers-01.jpg" alt=""></li>