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 dont know what to do in the Task 5, I required to add a nested ordered list to the "Shapes" list item but it dont work

when Im trying to put a nested list it doesnt work... what I need 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>
      <dt>Name</dt>
      <dd>Ziv</dd>
      <dt>Age</dt>
      <dd>14</dd>
      <li>Stop</li>
      <li>Drop</li>
      <li>Roll</li>
    </ol>
    <ul>
    <dt>Name</dt>
    <dd>Ziv></dd>
    <dt>Age</dt>
    <dd>14</dd>
      <ol>
    <dl>Shapes</dl>
      <li>Colors</li>
      </ol>
    </ul>

  </body>
</html>

1 Answer

It asks for ordered list inside the shape so I don't know where you got the thought to add the <dt>'s from. you only need to create it INSIDE the shape list so like this

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

I tried this but when i do this it says: Try adding the ordered list inside the list item "Shapes"

Yaruma Rodriguez
Yaruma Rodriguez
1,087 Points

Thanks so much, I was stuck here!