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

This challenge is buggy

I placed the correct answer for question 5/6 and it is still saying that I have an error. What is the deal?

What is wrong here?

<!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</li>
    <ol>
      <li>Circle</li>
    </ol>
  <li>Colors</li>
</ul>

</body> </html>

Never mind I figured it out. Silly me. Nested code has to be placed inside of the <li> tags... like so

<!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>Shape</li>
    </ol>
  </li>

  <li>Colors</li>
</ul>

</body> </html>

5 Answers

Patrick Donahue
Patrick Donahue
9,523 Points

I just redid it and went through just fine.

Do you have code to show us? That can help us see what is wrong with either your code or the challenge.

This is the code I have placed. It is challenge 5/6.

<!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</li>
    <ol>
      <li>Shape</li>
    </ol>
  <li>Colors</li>
</ul>

</body> </html>

This is the code I have placed. It is challenge 5/6.

<!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</li>
    <ol>
      <li>Shape</li>
    </ol>
  <li>Colors</li>
</ul>

</body> </html>

<!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</li>
    <ol>
      <li>Shape</li>
    </ol>
  <li>Colors</li>
</ul>

</body> </html>

Patrick Donahue
Patrick Donahue
9,523 Points
<ul>
    <li>Shapes</li>
    <li>Colors</li> 
</ul>

That should be under Shape. You moved a List Item outside of the Unordered list. I think also it should be "Shapes" but you can double check in the directions.

Nevermind. The ordered list was not properly nested inside of the shapes <li> tag. I have solved it. Thank you for trying!

Patrick Donahue
Patrick Donahue
9,523 Points

Sorry - I thought you said Challenge 4 not 5. Good luck!

Thanks Pat