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

<ol> nested inside <li>

I pretty sure I'm doing this correctly but I keep getting told it's wrong? <li>Shapes</li> <ol></ol>

5 Answers

<ul>
    <li>
        <ol>
            <li>
            Something here
            </li>
        </ol>
   </li>
</ul>

Thanks. This is what I'm doing: '''HTML <ul> <li>Shapes</li> <ol> </ol> <li>Colors</li> </ul> '''

The code challenge is asking me to nest an Order List inside the List Item Shapes. When I do it, it keeps telling me 'Bummer, try adding the ordered list to the list item "shapes"

can you add your code so I can see what you're talking about I have not taken the HTML track (been doing HTML 20 years don't feel I need it ) ;-)

Sure. The challenge is to nest an Ordered List inside the List Item Shapes. This is what I have.

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

put your code in a code block.

3 of ` then your code then 3 more of ` as your code is not viewable atm.

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

The li element "shapes" closing tag is in the incorrect place. It should be

<ul>
  <li> Shapes
    <ol> 
      <li> Circles </li>
    </ol>
  </li>
</ul>

ahhhhh!!! Thank you!