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 trialAnand Swamy
Courses Plus Student 2,368 PointsI added a nested ordered list in Shapes in the following code but it's still not accepting. Am I missing something?
<ul> <li>Shapes</li> <ol> <li>One</li> <li>Two</li> <li>Three</li> </ol> <li>Colors</li> </ul>
<!DOCTYPE html>
<html>
<head>
<title>HTML Lists Challenge</title>
</head>
<body>
<h1>HTML Lists Challenge</h1>
<ol>
<li>Stop</li>
<li>Drop</li>
<li>Roll</li>
</ol>
<!-- Write your code below -->
<ul>
<li>Shapes</li>
<ol>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ol>
<li>Colors</li>
</ul>
</body>
</html>
2 Answers
Steven Parker
231,269 Points
The children of a list element (ul
or ol
) should all be list items (li
).
If you add another element, including another list, to a list item it should be completely inside the list item tags.
Depending on the browser, your code might be displayed so that it appears the same, but the challenge mechanism is directly examining the code.
Brian Foley
8,440 PointsHello, try putting the nested <ol></ol> items before the closing </li> tag for Shapes.
Anand Swamy
Courses Plus Student 2,368 PointsTree corrected it, but I had the same exact code in it. I wonder if it's a malfunction? Thanks for your comment and time!
Anand Swamy
Courses Plus Student 2,368 PointsAnand Swamy
Courses Plus Student 2,368 PointsTreehouse corrected it, but I had the same exact code in it. I wonder if it's a malfunction?
Anand Swamy
Courses Plus Student 2,368 PointsAnand Swamy
Courses Plus Student 2,368 PointsThanks for your help and time!