Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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