Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

HTML Lists

I am struggle with html list challenged. I dont understand why it was not working on 5 part of 6. http://i.imgur.com/GPZPz.png

3 Answers

James Barnett
James Barnett
39,199 Points

@Brittany - Just to expand upon what @Gareth said, the reason you have to do it that way is because the only valid child of a ol or a ul is an li. So a nested ol must be inside an li

Gareth Redfern
Gareth Redfern
36,217 Points

Hi Brittany,

It looks like you haven't nested the ordered list between the list item - your code is this:

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

It should look like this:

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

I think that should do it :-)

Travis Loncar
Travis Loncar
8,345 Points

Brittany,

It looks like you've placed the ordered list outside of the closing </li> tag after 'Shapes'. Try this:

<li>Shapes<ol></ol></li>