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

Code Challenge: Organize with unordered lists

I have now been stuck on Item 2 of this code challenge for the past hour and am getting extremely frustrated. This is what it says:

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!

I put in:

        <li><a href="img/numbers-01.jpg">
          <img src="image/numbers-01.jpg" alt=""></a>
        </li>
        <li><a href="img/numbers-02.jpg>
          <img src="image/numbers-02.jpg" alt=""></a>
        </li>
        <li><a href="img/numbers-06.jpg>
          <img src="image/numbers-06.jpg" alt=""></a>
        </li>
      </ul>```

And this is how it responds:

Make sure you include an image tag that displays β€œimg/numbers-01.jpg”
What am I doing wrong?!
Amber Cookman
Amber Cookman
12,662 Points

It looks like your image elements need the file path changed to "img" instead of "image".

Also, while I'm not sure the anchor elements are necessary for that particular question, they do need the quotations closed after the file path on numbers-02 and numbers-06.

4 Answers

Ben Falk
Ben Falk
3,167 Points

Looks like you need to use the image src "img", not "image". Try that? Also, you don't need to enclose those images in links -- I'm not seeing anywhere in the question that requires that? I've done a quick test of the challenge, and with those two fixes, it should work for you.

Thanks! That did it.

Ben Falk
Ben Falk
3,167 Points

Try enclosing your code in three backticks (" ``` " before and after the code) so we can see it. We'll be able to help once we know what you are working with.

Hi, Did you make sure you're tag is <img> not a <image>

Andrew Moore
Andrew Moore
21,076 Points

It looks like you've forgotten to close your quotes on the second two anchor tags. You have <a href="img/numbers-02.jpg>, should be <a href="img/numbers-02.jpg">. Same for the last link.