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
Unsubscribed User
14,909 PointsProblem with nested lists
I'm trying to complete my lists badge for html and it's asking for a nested ordered list inside of an unordered list item. I did as instructed but something is missing. Can someone tell what's missing?
5 Answers
Mark Flavin
10,199 PointsPlease post the code you used.
Unsubscribed User
14,909 Points<ul>
<li>Shapes</li>
<ol>
<li>item one</li>
<li>item two</li>
<li>item three</li>
</ol>
<li>Colors</li>
</ul>
Mark Flavin
10,199 PointsYou need to put the the ordered list inside the shapes list item.
James Barnett
39,199 PointsCharles -
Keep in mind that a nested list should go between the <li> and </li> tags to be valid HTML.
Here's an example:
<ul>
<li><a href="#">Milk</a>
<ul>
<li><a href="#">Goat</a></li>
<li><a href="#">Cow</a></li>
</ul>
</li>
<li><a href="#">Eggs</a>
<ul>
<li><a href="#">Free-range</a></li>
<li><a href="#">Other</a></li>
</ul>
</li>
<li><a href="#">Cheese</a>
<ul>
<li><a href="#">Smelly</a></li>
<li><a href="#">Extra smelly</a></li>
</ul>
</li>
</ul>
Unsubscribed User
14,909 PointsThanks Mark and James. I made the fix and earned the badge.