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 trialYuri Ramocan
3,791 PointsAdd a nested ordered list to the "Shapes" list item.
Hey everyone,
So I'm doing the nested part of the code challenge, but I'm having a problem getting the task evaluator to accept my code.
This is my current 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>Circle</li>
<li>Square</li>
<li>Triangle</li>
</ol>
<li>Colors</li>
</ul>
</body> </html>
As you can see, I nested the ordered list within the "Shapes" list item (and when I preview it, it appears to be nested as well!), however, whenever I click "check work" it says that I'm wrong.
Any suggestions?
3 Answers
Denisse Cabieses
6,411 PointsHi Yuri- They want the ordered list to be inside the actual Shapes list item. So it has to look like this:
<!DOCTYPE html> HTML Lists Challenge
<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>Circle</li>
<li>Square</li>
<li>Triangle</li>
</ol></li>
<li>Colors</li>
</ul>
Jasmine Gibson
Courses Plus Student 2,038 PointsYou need to add the ordered list before the closing list tag for shapes.
<ul>
<li>Shapes
<ol></ol>
</li>
<li>Colors</li>
</ul>
Yuri Ramocan
3,791 PointsAhh! Thank you so much, Denisse!
Denisse Cabieses
6,411 PointsYou're welcome!! :)