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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Joshua Dodge](https://secure.gravatar.com/avatar/b35702c09fa8e2676d4cde4df0ce7784?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Joshua Dodge
1,413 PointsWhy is the Code Challenge on HTML Deep Dive Lists failing with the following code?
It prompts: "Add a nested ordered list to the "Shapes" list item."
My code:
<!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>one</li>
<li>two</li>
</ol>
<li>Colors</li>
</ul>
</body> </html>
Any suggestions on why I am failing the code challenge? It fails with or without the list items nested to the ordered list.
2 Answers
![Alex Heil](https://uploads.teamtreehouse.com/production/profile-photos/108456/micro_ich-sw.jpg)
Alex Heil
53,547 Pointshey joshua, you get the bummer because you added the ordered list after the list item - when you want to nest the ordered list it has to be before the closing li tag. you can see the full code here: https://teamtreehouse.com/forum/add-a-nested-ordered-list-to-the-shapes-list-item-3?sort=subscribed
hope that helps ;)
![Marvin Abella](https://uploads.teamtreehouse.com/production/profile-photos/113047/micro_20141031_114153.jpg)
Marvin Abella
6,378 PointsI agree with Alex. By experience, I always look closely on the prompted challenge and dissect them word by word, most of the time they hint out words with or without the quotes what you NEED to do to answer it. Goodluck Joshua!
Joshua Dodge
1,413 PointsJoshua Dodge
1,413 PointsI see what you mean. Thank you, Alex! So basically is it just a matter or semantics? In the same way we nest the list items in the original unordered list tags and then closed the unordered list?