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

HTML HTML Lists HTML Lists

wh2
wh2
5,955 Points

HTML quiz: "Add a nested ordered list to the "Shapes" list item."

I'm sure I'm getting it right but it keeps saying it's wrong?

<ul> <li>Shapes</li> <ol> </ol> <li>Colors</li> </ul>

The ordered list is now under "Shapes", so why is this considered incorrect?

Please help, thanks!

Stone Preston
Stone Preston
42,016 Points

please post the code you are using.

6 Answers

Stone Preston
Stone Preston
42,016 Points

remember to add another list as a nested list to a list item:

<li>List Item

    <ol>

    </ol>


</li>

notice how the ol tags are inside the opening and closing li tags.

wh2
wh2
5,955 Points

''' <ul> <li>Shapes</li> <ol> </ol> <li>Colors</li> </ul> '''

Sorry, first time post. Didn't realize I had to use the three back ticks.

Stone Preston
Stone Preston
42,016 Points

see my above comment for a hint that should help you out.

wh2
wh2
5,955 Points

Whoops that didn't work either.

'''html

<ul> <li>Shapes</li> <ol> </ol> <li>Colors</li> </ul> '''

Stone Preston
Stone Preston
42,016 Points

do the three ticks, add a new line, post your code, go to a new line and add the three ticks. the tick is the button to the left of the 1 key. not sure what the character is called.

wh2
wh2
5,955 Points
<ul>
      <li>Shapes</li>
        <ol>
            </ol>
      <li>Colors</li>
    </ul>
wh2
wh2
5,955 Points

Ok, now I understand. Thank you very much!

Stone Preston
Stone Preston
42,016 Points

ok so you passed the challenge?

wh2
wh2
5,955 Points

Yes I did. Thank you very much, Stone!

Stone Preston
Stone Preston
42,016 Points

no problem glad I could help