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 Code Challenge: Add the items "Square" and "Circle" to the list nested under "Shapes"

I'm stuck in an infinite loop.

Here's my Before code, which passed the previous step:

<ul>
  <li>Shapes
    <ol>
        <li>Stop</li>
        <li>Drop</li>  
        <li>Roll</li>  
    </ol>
</li>
    <li>Colors</li>
</ul>

The instructions are: Add the items "Square" and "Circle" to the list nested under "Shapes". So here's my first guess:

<ul>
  <li>Shapes
    <ol>
        <li>Stop</li>
        <li>Drop</li>  
        <li>Roll</li>
        <li>Square</li>  
        <li>Circle</li>  
    </ol>
</li>
    <li>Colors</li>
</ul>

Error! "Looks like Task 2 is no longer passing." So I delete that and go back to Task 2 then keep going until I get to the validated code in the first block above. Here my second guess at adding items to the list nested under Shapes:

<ul>
  <li>Shapes
    <ol>
        <li>Stop</li>
        <li>Drop</li>  
        <li>Roll</li>  
    </ol>
    <li>Square</li>
    <li>Circle</li>
</li>
    <li>Colors</li>
</ul>

Error! "Looks like Task 4 is no longer passing." So I delete it and click the button to recheck my work.

Error! "Your nested ordered list has too many list items. Try removing some." If I remove a list item, I get the first error message that Task 2 is no longer passing. So I put them back and recheck and it says "Your nested ordered list has too many list items. Try removing some."

Infinite loop!

What's the answer to this challenge? Where are the list items Square and Circle actually supposed to go?

3 Answers

Your "Shapes" and "Color" unordered lists should be seperate from the "Stop", "Drop", "Roll" ordered list. The "Square" and "Circle" should start a nested ordered list under "Shapes". You have them combined it looks like.

yep, that was it. I redid the challenge from the very beginning after walking away for a few hours and I see now that it was supposed to be two separate lists in the body section: one OL with Stop/Drop/Roll and one UL with Shapes / Color.

Then, inside the Shapes element, a new OL with Square / Circle.

Not sure why the previous stuff validated at all. Thanks, Jon!

Chase Lee
Chase Lee
29,275 Points

Can you give us a link to the code challenge that your having problems with.

No problem.