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

Add a nested order list to the "shape" item list.

I'm taking my first HTML quiz and I can't get past this part! it must be something very stupid and simple, but I can't seem to figure it out. Any help would be greatly appreciated!!

Here is my code: (why isn't it right?)

<ul>
      <li>Shapes</li>
           <ol>
              <li>Stop</li>
              <li>Drop</li>
              <li>Roll</li>
           </ol>
      <li>Colors</li>
</ul>

My code isn't showing up! What do I do?

Stone Preston
Stone Preston
42,016 Points

see this post for how to format code in the forum. there is also a markdown cheatsheet in the bottom right corner of the comment text box that will show you as well, although the post is a little more detailed

You can click edit on your post now too to see how it is formatted as I edited for you :)

1 Answer

You actually have to add the list inside the desired list item. See below

<ul>
      <li>Shapes
           <ol>
              <li>Stop</li>
              <li>Drop</li>
              <li>Roll</li>
           </ol>
      </li>
      <li>Colors</li>
</ul>

You see how it is inside the list item and then it closes off after the nested list.

Thank you!!!