Welcome to the Treehouse Community
Looking to learn something new?
Why 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."
<!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>
Any suggestions on why I am failing the code challenge? It fails with or without the list items nested to the ordered list.
Alex Heil53,534 Points
hey 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 Abella6,378 Points
I 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!