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 HTML Lists HTML Lists

Andrew Yap
Andrew Yap
6,504 Points

Nested ordered list within unordered list

<ul>
  <li>Shapes</li>
    <ol>
      <li>An ordered list nested within the shapes unordered list</li>
    </ol>
  <li>Colors</li>
</ul>

Please help! In the HTML deep dive test on lists, the above code isn't passing test for nesting an ordered list within the shapes unordered list. Does anyone know why?

4 Answers

Nathalie C
Nathalie C
2,594 Points

You have closed the shapes <li> tag before the ordered list. The closing </li> tag must be placed after your closing </ol> tag so that the ordered list is nested within it.

Andrew Yap
Andrew Yap
6,504 Points

Thanks both of you.

No problem, and also a little tip for you, if you find some challenges hard to do. Just copy-paste the question into google and most of the time you will find a treehouse forum link about it :)