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

General Discussion HTML Lists HTML Lists

Add a nested ordered list to the "Shapes" list item.

How do I Add a nested ordered list to the "Shapes" list item on my first code challenge of Deep Dive HTML?

5 Answers

The below is just an example:

<ul id="first-list">
    <li> This is a list item
        <ol id="second-list">
            <li>This is another list item</li>
        </ol>
    </li>
</ul>

I tried that but it still says I'm doing it wrong

And I don't know how to show all my code in the comments

Check the Markdown Cheatsheet for instructions on how to post properly formatted code.

    <li>Stop</li>
    <li>Drop</li>
    <li>Roll</li>
  </ol>
    <ul>
      <li>Shapes</li>
        <ol>
      <li>Colors</li>
    </ul>         
  </body>
</html>

You will have to do something like this:

<ul>
    <li>Shapes
        <ol>
        <!-- List items goes here -->
        </ol>
    </li>
    <li>Colors</li>
</ul>

Sweet, got it! Thank you very much