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

y it is showing error

it is showing error even toughmy code is correct

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

    <h1>HTML Lists Challenge</h1>
    <ol>
      <li> stop
    <ul>
      <li>suhail</li>

    </ul>
      </li>
      <li>drop
      </li>
      <li>roll
      </li>
    </ol>

    <!-- Write your code below -->


  </body>
</html>
Harry James
Harry James
14,780 Points

Hey Suhail,

What is the error message you are getting when trying to submit this?

your uordered list too long

1 Answer

Harry James
Harry James
14,780 Points

Hey again Suhail,

It looks like you've been adding these items to the unordered list when the task here wants them in an ordered list. Your ordered list is the one at the top, using the <ol></ol> tags.

In here, you should add the 3 list items: Stop, Drop and Roll - but make sure you don't add any other list items!

Also, to avoid any errors, make sure your ordered and unordered lists are kept separate. End the ordered list before you start the unordered list.


If you make sure to do this, the task should then pass. But if you get stuck along the way, drop a comment and I'll help you get there :)