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

add to listed nest

add to listed nest??

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

 <ol> 
   <li>Stop</li>
   <li>Drop</li> 
   <li>Roll</li> 
  </ol>

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


    <h1>HTML Lists Challenge</h1>

    <!-- Write your code below -->


  </body>
</html>

2 Answers

Kristopher Van Sant
PLUS
Kristopher Van Sant
Courses Plus Student 18,830 Points

A couple things here wrong with the code you have.... first you are missing the closing list tag for shapes, second you don't need the extra shapes, with the ordered list tags, that you have underneath the first listed shapes. And lastly the last challenge, number 6, is asking you to "Add the items "Square" and "Circle" to the list nested under "Shapes" " . So these items would be list items within the ordered list that you placed inside of Shapes.

    <ol>
      <li>Stop</li>
      <li>Drop</li>
      <li>Roll</li>    
    </ol>

    <ul>
      <li>Shapes
         <ol>  <!------- Ordered list nested inside shapes -->
            <li>Square</li> <!------List items inside the ordered list that is nested under "Shapes"-->
            <li>Circle</li>
         </ol>
      </li>   <!------Closing list tag for shapes-->
      <li>Colors</li>
    </ul>

Hope this helps! Keep up the good work! :)

Not sure what you're trying to do, but here's an example. So, the whole nested list should go inside the parent list tag.

<ul>
  <li>colors
    <ol>
      <li>red</li>
      <li>green</li>
      <li>blue</li>
    </ol>
  </li>
</ul>