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

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>