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

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>