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
Javier Briones
Front End Web Development Techdegree Student 29,674 PointsHTML > List > Code Challenge
Hello,
Need some help on the Code Challenge for the HTML > List videos. The challenge is to add a "nested ordered list to the 'Shapes' list item". Here's 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>Triangle</li>
<li>Square</li>
<li>Circle</li>
<li>Rectangle</li>
</ol>
<li>Colors</li>
</ul>
</body>
</html>
It keeps telling me that it's wrong and that I need to "Try adding the ordered list inside the list item 'Shapes'". Help Please! Thank you in advance :)
1 Answer
ryanloerzel
12,671 PointsHi Javier,
It looks like you need to put your closing list item tag </li> for shapes after the closing tag for your nested list:
<li>Shapes
<ol>
<li>Triangle</li>
<li>Square</li>
<li>Circle</li>
<li>Rectangle</li>
</ol>
</li>
Javier Briones
Front End Web Development Techdegree Student 29,674 PointsJavier Briones
Front End Web Development Techdegree Student 29,674 PointsLooks like that did the trick, thank you Ryan!