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

Marcelo Pasos
Marcelo Pasos
2,019 Points

Try adding the ordered list inside the list item "Shapes"

Im putting a ul inside a li item and it doesnt let me pass the challenge

9 Answers

Derek Merson
Derek Merson
19,280 Points

By the last step, everything looks like:

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

    <h1>HTML Lists Challenge</h1>

    <!-- Write your code below -->
    <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>   
  </body>
</html>
Marcelo Pasos
Marcelo Pasos
2,019 Points

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

Derek Merson
Derek Merson
19,280 Points

the li is supposed to go inside of the ul. Like:

<ul>
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
</ul>
Marcelo Pasos
Marcelo Pasos
2,019 Points

THE is supposed to go inside of THE.........

Derek Merson
Derek Merson
19,280 Points

Take a look at the "Markdown Cheatsheet" directly below the "Add an Answer" box on this page so that you can format your code legibly on the forum.

Marcelo Pasos
Marcelo Pasos
2,019 Points

<ul> <li>Shapes</li> <ol> <li></li> </ol> <li>Colors</li> </ul> Add a nested ordered list to the "Shapes" list item. this is how it is supposed to be but there seems to be a glitch on the challenge because it is not just me whos having this issue

Marcelo Pasos
Marcelo Pasos
2,019 Points

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

Derek Merson
Derek Merson
19,280 Points

Well, if it is an "ordered list", then you should be using ol NOT ul.

<ol>
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
</ol>
Marcelo Pasos
Marcelo Pasos
2,019 Points

there is a ul with 2 li, one with Shapes and one with Colors on it... then it asks me to Add a nested ordered list to the "Shapes" list item. and that is exactly what I am doing but this is not just happening to me.....

Derek Merson
Derek Merson
19,280 Points
<!DOCTYPE html>
<html>
  <head>
    <title>HTML Lists Challenge</title>
  </head>
  <body>

    <h1>HTML Lists Challenge</h1>

    <!-- Write your code below -->
    <ol>
      <li>Stop</li>
      <li>Drop</li>
      <li>Roll</li>
    </ol>

    <ul>
      <li>Shapes
        <ol></ol>
      </li>
      <li>Colors</li>
    </ul>   
  </body>
</html>
Marcelo Pasos
Marcelo Pasos
2,019 Points

I finally got it... thanks alot!