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

Lise Le Petit
Lise Le Petit
2,637 Points

Code challenge & images: I cannot see where I am mistaking

I cannot see while the challenge is not accepted. Here is what I am supposed to do: "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!"

And here is what I made. So far, I think it is correct.

      <nav>
        <ul>
          <li><img src="img/numbers-01.jpg" alt=""></li>
          <li><img src="img/numbers-02.jpg" alt=""></li>
          <li><img src="img/numbers-06.jpg" alt=""></li>
        </ul>
      </nav> 
</section>```

Could someone tell me where I am mistaken?

5 Answers

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!?

It's because you have wrapped the <ul> in an <nav> just remove then <nav> & </nav> and it will parse :)

Lise Le Petit
Lise Le Petit
2,637 Points

I don't understand exactly: what did I wrapped wrongly?

You put an

<nav>
  <ul>
    <li><img src="img/numbers-01.jpg" alt=""></li>
    <li><img src="img/numbers-02.jpg" alt=""></li>
    <li><img src="img/numbers-06.jpg" alt=""></li>
  </ul>
</nav>

In the example above you put an <nav> tag around the <ul> the code should be like below:

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

No worries, happy to help :)

You asked this a long time ago & I'm sure you either don't care or figured it out. But I think its because you can have an ordered or unordered list without the navigation for clickable links. The nav makes it navigatable. Whereas here we just need an unordered list.

Where is this supposed to be posted on the page though??

Praveen kumar
Praveen kumar
13,684 Points

remove the nav tags i.e <nav></nav>