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

Can anyone explain to me what i need to do?

i am on task 6 of 6, and i think I've done everything right but it says i have to many list items, can anyone show me what I'm doing wrong and how to fix it?

index.html
<!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>
        </ol>
      </li>
      <li>Colors</li>
      <li>Square</li>
      <li>Circle</li>
    </ul>

  </body>
</html>

3 Answers

Shay Paustovsky
Shay Paustovsky
969 Points

Hi, Ronald I understand it's frustrating when something doesn't work so let's do it step-by-step :

Your code at 5/6 tasks should look like that -

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

And this is how it should look at 6/6 -

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

It passed. Thank you so much Shay. I really appreciate your help:). have a great day!

Shay Paustovsky
Shay Paustovsky
969 Points

Hey Ronald,

  1. Delete the <li> elements : Square & Circle
  2. Create an <li> element named: "shapes"
  3. In that element nest an ordered list, with the items: square & circle

Then you should pass the task, hope I've helped

Shay

Hey Shay, can you type out the code to the directions you've sent me. Im having trouble translating your directions into code. thank you.

Shay Paustovsky
Shay Paustovsky
969 Points
<!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>
        </ol>
      </li>
      <li>Colors</li>
      <li>Shapes
      <ol>
          <li>square</li>
          <li>circle</li>
     </ol>
</li>
    </ul>

  </body>
</html>

Here you go Ronald, hope this helps. if there are any trouble I'm here to help.

I have copied my code exactly the way you yours, and i am on task 6/6. and every time i hit check. it says i have too many list items under the unordered list. i don't know what else to do. Any ideas? (By the way thank you for taking the time to typing out that code. it means a lot.)