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
Kyle Damken
10,633 PointsFor HTML code challenge on lists, getting error when everything looks right
For the 5th question in the code challenge here (https://teamtreehouse.com/library/html/lists/html-lists), it tells you to "Add a nested ordered list to the "Shapes" list item.", which I did below. Then, when I did that the error message it gave me was "Bummer! Try adding the ordered list inside the list item "Shapes"".
I put in
<ul>
<li>Shapes</li>
<ol></ol>
<li>Colors</li>
</ul>
I also tried putting list items in the ordered list and it didn't work. Also, in the video they said that only unordered lists should be nested, so this question doesn't make a lot of sense unless I'm missing something
Any ideas?
5 Answers
ixioihjfjo
16,195 PointsHey there Kyle, Can you post the code?
Here is the correct way to nest an Ordered List within the Shapes List Item:
<li>Shapes
<ol>
</ol>
</li>
In order to nest the ordered list within the Shapes List Item tag, you must put the <ol> tags before the closing tag of the Shapes list item.
Let me know if this makes sense or if you need further explanation. I would be more than happy to elaborate.
Happy Coding!
Jeff Busch
19,287 PointsHi Guys,
If you look to the bottom right of the text box you will see something that says Markdown Cheetsheet. If you don't understand that maybe this will make sense: How to display code at Treehouse
Jeff
Kyle Damken
10,633 PointsHey Mike,
Thanks for the quick answer! Looks like the code didn't post here because I ignored the markdown cheatsheet, I didn't know I needed the backticks to post html here.
My mistake was that the ol was not inside the Shapes list element, but rather between the Shapes li and the next li in the list. Thank you for clearing that up!
Best, Kyle
ixioihjfjo
16,195 PointsYou're very welcome! This site is a great utility to learn from and receive answers pretty quickly within the forum.
Have Fun!
ixioihjfjo
16,195 PointsHey Jeff,
Thanks for the info. I just noticed that and I'm working on it now :)
First time using the forum system
Thanks for the additional link regarding the the code display for the other languages!
ixioihjfjo
16,195 Points** Disregard Comment **