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!

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


Stucked in task 5 of 6

Add a nested ordered list to the "Shapes" list item. I refer backed to the video . I tried to nest the list into the shape but still fail to get the correct resutl

4 Answers

<ul> <li>Shapes <ol></ol> </li> <li>Colors</li> </ul>

Could you paste your code?

Cesar Vanbuskirk
Cesar Vanbuskirk
6,672 Points

try this

< ol>
        switch the ordered list to unordered if necessary
Cesar Vanbuskirk
Cesar Vanbuskirk
6,672 Points

Don't close the <li> till after the nested list.

The task is to add a ordered list to Shapes list item. You are trying to add an ordered list inside an ordered list. The code is fundamentally correct but whats required for this particular task is that one should just add an ordered list under list item "Shapes". If you just paste <ol> <li></li> </ol> under the list item Shapes it should work. The whole code should look like(below)- <ul> <li>Shapes <ol> <li></li> </ol> </li> <li>Colors</li> </ul>