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

i try to make it but it dosent work what can i do

am try to exersie coding but i cant make out it shows me always error i dont know to do

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

    <h1>HTML Lists Challenge</h1>

    <!-- Write your code below -->
 <ol>

   <ul>

   <li> apple</li>

   </ul>
   <li>banan second</li>
   <li> orange</li>


    </ol>
    </body>
</html>

1 Answer

brandon downs
brandon downs
11,577 Points

first you must create an Ordered List <ol></ol> then include three List Items inside the Ordered List <li></li> underneath the closing tag for the Ordered List, create an Unordered List <ul></ul> inside the Unordered List include two List Items Nested inside of one of the list items, create another Ordered List with two list items.

make sure to have everything nested correctly and all of your closing tags in the right spots

hope this helps

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