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

Nested order list in unordered list

My current Code Challenge is asking me to "Add a order list to the to the Shapes list item. Can anyone give me some pointers as to what im doing wrong here. It tells me "Bummer! Try adding the ordered list inside the list item "Shapes"

http://codepen.io/anon/pen/hyzkc.html

I think that link will work for my code :P - havnt figured out markdown yet

Hi Ariane,

If you look just below the text box area you will see something that says Markdown Cheetsheet. Also, there is a post here titled: Posting Code to the Forum by Dave McFarland. If you don't understand that maybe this will make sense: How to display code at Treehouse.

Jeff

I think this is what you want.

<ol>
      <li>Stop</li>
      <li>Drop</li>
      <li>Roll</li>
    </ol>

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

3 Answers

I'll give you a hint. You haven't added Your order list INSIDE of Shapes list item :)

If you are still stuck, try looking up this thread about nested lists: http://stackoverflow.com/questions/5899337/proper-way-to-make-html-nested-list

<!-- Write your code below --> <ol> <li>Stop</li> <li>Drop</li> <li>Roll</li> </ol>

<ul> <li>Shapes <ol> <li>one</li> <li>two</li> </ol>

  </li>

  <li>Colors</li>

</ul>

</body> </html>

Got it guys! thanks a ton!