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

Challenge Problem

I'm at the step 5 of HTML Lists Challenge. The challenge is to add a nested ordered list inside an unordered list. And here's my code:

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

When I run this, I get the warning "Try adding the ordered list to Shapes list item"

What's the problem here?

6 Answers

marsha grasett
marsha grasett
9,995 Points

Im looking at the Challenge now.

The ol list contains Stop, Drop Roll

Then under that you create a ul list with ....

<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>
marsha grasett
marsha grasett
9,995 Points

ordered list inside an unordered list.

Should it be inside the Shapes list item?

Yeah, this is the task: "Add a nested ordered list to the "Shapes" list item."

So you just add a nested ordered list to this and the error says: "Bummer! Try adding the ordered list inside the list item "Shapes" "

Because it says try adding "the" ordered list, I'm adding "the" ordered list which was created earlier in this challenge. But I keep getting the same error.

Thanks a lot! It worked liked this.

marsha grasett
marsha grasett
9,995 Points

It's just the wording of the question, I think.

Sometimes I am in such a hurry to put the answer in I don't really read the exact ask. (And then I re-read it and go .... Doh;)

Agreed, especially when you're sure that you know the code that the system wants from you but when you just don't pay attention where that code should go. Still, sometimes the tasks have really strange wording, mostly in the error fields.

James Barnett
James Barnett
39,199 Points

> mostly in the error fields

It's kinda unfortunate, but in my time on Treehouse I've found the error fields on to be not worth reading most of the time.