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

Akwa Dike
Akwa Dike
4,286 Points

Please help with challenge "Add a nested ordered list to the "Shapes" list item"

This is what i coded but it keeps coming out wrong.

< ul >

< ul >

  <li>Shapes</li>

   <ol>

      <li></li>

       <li></li>

      <li></li>

   </ol>

   <li>Colors</li>

< /ul >

< /ul >

you need <ul> tags instead of the <ol> tags

2 Answers

Rodger Voelkel
Rodger Voelkel
21,736 Points
<ul>
    <li>Shapes
      <ul>
        <li>Shapes</li>
        <li>Colors</li>
      </ul>
    </li>
</ul>  

When you have an unordered list within a list you need to make sure the close of that list is after the close of its unordered list.

Akwa Dike
Akwa Dike
4,286 Points

This what i coded <ul> <li>Shapes</li> <ol> <li>triangle</li> <li>triangle</li> </ol> <li>Colors</li>

</ul>

And this is what i got

Shapes
   1. triangle
   2. triangle
Colors

and the ordered list is needed in the shapes list item but it keep saying i'm wrong, please help with a solution somebody. i'm going crazy!