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

What is wrong with this answer??

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

3 Answers

Hey Crystalel, I cant see the question but from memory you need to create an Ordered list within the unordered list, you can do so by using the unordered list element <ul> then adding a list element <li>

but!! it's important you do not add a closing </li> tag to it, instead you need to add an ordered list tag <ol> then 2 list elements followed by a closing ordered list tag and THEN closing your list tag.

To complete the task you need to arrange your HTML like below;

<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>

The task is to Add a nested ordered list to the "Shapes" list item.

What you typed makes my task 4 incorrect.

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

Above is what I put to nest the ol within the ul, but it says it is Bummer! Try adding the ordered list inside the list item "Shapes"

whoops my mistake, I forgot the second part of the question!

I've updated my previous comment to contain the correct HTML code

AH. I see the mistake. Thank you.