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

Raissa Ludwig
Raissa Ludwig
1,733 Points

Where to report problem in the challenge task, keeps saying code is incorrect when it is.

The challenge is to add an ordered list to an existing unordered list item. My answer was: <ul> <li>Shapes</li> <ol> <li>Square</li> <li>Circle</li> </ol> <li>Colors</li> </ul>

Is my code wrong? Thanks!

4 Answers

Logan R
Logan R
22,989 Points

Hi Raissa, if you provide your code, we can take a look and see what is wrong. Make sure you wrap your code with three ` marks.

In the meantime, I completed the challenge, and this is what my list looked like. Make sure you added the <ol></ol> list before you close the </li> tag for Shapes

<ul>
      <li>Shapes
        <ol>
          <li>Square</li>
          <li>Circle</li>
        </ol>
      </li>
      <li>Colors</li>
    </ul>
idan ben yair
idan ben yair
10,288 Points

Hi Raissa, can you please copy your code so we could help you? Or attach a link to the challenge

Raissa Ludwig
Raissa Ludwig
1,733 Points

Thanks for the help, here is the code <ul> <li>Shapes</li> <ol> <li>Square</li> <li>Circle</li> </ol>

  <li>Colors</li>
</ul>
Logan R
Logan R
22,989 Points

Just as I said in my answer above :)

You need to change it from

<li>Shapes</li>
      <ol>
        <li>Square</li>
        <li>Circle</li>
      </ol>

and move the </li> that closes Shapes to after the </ol>. This will allow the list to be inside the shapes itself, and not below it.

Hope this helps you out!

Raissa Ludwig
Raissa Ludwig
1,733 Points

Thanks so much!!! :)

Raissa Ludwig
Raissa Ludwig
1,733 Points

Sorry it did not past correctly the first time

<ul>
  <li>Shapes</li>
  <ol>
    <li>Square</li>
    <li>Circle</li>
  </ol>

  <li>Colors</li>
</ul>