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

Step 6 of 6 isn't working well

Hi there,

On the last step of HTML Lists, I've tried and retried reading, but it returns that Step 2 is wrong anyway, even though I've checked that this code is what is wanted from me.

Am I doing something wrong? Can anyone help me understand the issue please?

<!DOCTYPE html>
<html>
  <head>
    <title>HTML Lists Challenge</title>
  </head>
  <body>

    <h1>HTML Lists Challenge</h1>

    <!-- Write your code below -->
    <ul>
      <li>Shapes
         <ol>
           <li>Stop</li>
           <li>Drop</li>
           <li>Roll</li>
           <li>Square</li>
           <li>Circle</li>
         </ol>
      </li>
      <li>Colors</li>
    </ul>

  </body>
</html>

Thanks ;)

4 Answers

<!-- Write your code 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>

Are you sure the stop, drop, and roll should be there? Do you have leftover code from another task? Check to make sure you are adding the right stuff in the list. Check your nested structure and use indentation very carefully to keep track of lists. If i recall correctly it's the nesting a list in another list like this:

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

Yes, I suppose it should work like that, but if I remove the ordered list from the step before, it returns that Step 2 isn't passing.

Yup, that's right! I must've misread the step, I thought we should nest the Stop, Drop, Roll list. Thanks ;)