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 trialLise Le Petit
2,637 PointsCode 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
jasmyn aguilar
319 PointsInside 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!?
Dan Gamble
4,122 PointsIt's because you have wrapped the <ul> in an <nav> just remove then <nav> & </nav> and it will parse :)
Lise Le Petit
2,637 PointsI don't understand exactly: what did I wrapped wrongly?
Dan Gamble
4,122 PointsYou 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>
Lise Le Petit
2,637 PointsThanks !
Dan Gamble
4,122 PointsNo worries, happy to help :)
Alfred Harmon
Courses Plus Student 1,142 Pointswhy shouldn't there be a <nav> tag around it?
Josh Martin
1,271 PointsYou 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.
Jeffrey Lara
593 PointsWhere is this supposed to be posted on the page though??
Praveen kumar
13,684 Pointsremove the nav tags i.e <nav></nav>