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

VIJAYTA RAWAL
VIJAYTA RAWAL
434 Points

i am not getting how to add nested ordered list in shape item list

this question is about nesting ordered lists

Can you paste the code you're trying?

2 Answers

    <ol>
      <li>Stop</li>
      <li>Drop</li>
      <li>Roll</li>      
    </ol>

    <ul>
      <li>Shapes
        <ol>
          <li>Square</li>
          <li>Circle</li>          
        </ol>
      </li>
      <li>Colors</li>      
    </ul>
Markus Ylisiurunen
Markus Ylisiurunen
15,034 Points

Hi,

You can add nested list inside of one list item pretty easily. You do it the same way as creating new list.

Here is the code which will help you. It's the easiest way to explain how to do it.

    <ol>
        <li>Stop</li>
        <li>Drop</li>
        <li>Roll</li>
    </ol>

    <ul>
        <li>Shapes
            <ol>
                <li>Square</li>
                <li>Circle</li>
            </ol>
        </li>
        <li>Colors</li>
    </ul>
VIJAYTA RAWAL
VIJAYTA RAWAL
434 Points

thanx markus for great help