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

David Taber
PLUS
David Taber
Courses Plus Student 3,574 Points

how do I skip a question in a code challenge that is broken?

<!DOCTYPE html> <html> <head> <title>HTML Lists Challenge</title> </head> <body>

<h1>HTML Lists Challenge</h1>


  <li>Colors</li> your code below -->

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

</body> </html>

17 Answers

David Taber
PLUS
David Taber
Courses Plus Student 3,574 Points

<ol> <li>Stop</li> <li>Drop</li> <li>Roll</li> </ol> <ul> <li>Shapes</li> <ol></ol> <li>Colors</li> </ul> Question says to add a ordered list to the Shapes list item the error it is telling me is that I have not added it within the list item. Does this code look correct it does on w3c

Liam Roach
Liam Roach
16,787 Points

Hi what part is broken? I could maybe help with the part you are struggling with?

Liam Roach
Liam Roach
16,787 Points

Hi if you just copy and paste the plain text that will be fine for this example, do you mean the part where you are adding a nested list?

Dillon Patel
Dillon Patel
4,025 Points

Hey!

I just went and completed that code challenge. You might be having some syntax or semantic error.

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

That is the final code at the end of the code challenge. Let me know if there's a certain part you're having trouble with and hopefully I can clarify!

David Taber
PLUS
David Taber
Courses Plus Student 3,574 Points

" <ol> <li>Stop</li> <li>Drop</li> <li>Roll</li> </ol> <ul> <li>Shapes</li> <ol></ol> <li>Colors</li> </ul> " this is what I had

Dillon Patel
Dillon Patel
4,025 Points

Is your code, specifically the listing in the unordered list, identical to mine?

Dillon Patel
Dillon Patel
4,025 Points

Look at the Markdown Cheatsheet right below the comment box and it'll help you out with all forum-posting related stuff.

David Taber
PLUS
David Taber
Courses Plus Student 3,574 Points

no after the list item I have where < is replaced with [ here [ol] [li]Stop[/li] [li]Drop[/li] [li]Roll[/li] [/ol] [ul] [li]Shapes[/li] [ol][/ol] [li]Colors[/li] [/ul]

David Taber
PLUS
David Taber
Courses Plus Student 3,574 Points

In my previous example I replaced the <> with [] so I could post the html text here. would have to do a search and replace to get the html back...

Dillon Patel
Dillon Patel
4,025 Points

You can just copy my code from the above comment. The code that you just copied, however, is wrong. The ordered list is not nested within your shapes list item, rather, it's wrongfully in the middle of your two list items.

Look at what I did above and compare it to your code! To replace <> with [], you would have to to use CTRL-F and search and replace.

David Taber
PLUS
David Taber
Courses Plus Student 3,574 Points

OK so I see it has to be inside the opening [li]shapes [ol] [li] square [/li] [li] circle [/li] [/ol]

[/li]

Dillon Patel
Dillon Patel
4,025 Points

Yep! That should help you complete the code challenge. Let me know if you still need help with anything else!

David Taber
PLUS
David Taber
Courses Plus Student 3,574 Points

inside or outside the li does not matter goto wc3 and try it it works either way the same way.

Dillon Patel
Dillon Patel
4,025 Points

I'm not particularly sure if it works the same way, however, it is proper convention to put it within the <li> tags as that's how 'nesting' works.

David Taber
PLUS
David Taber
Courses Plus Student 3,574 Points

(''') <!DOCTYPE html> <html> <body>

<h4>An Ordered List:</h4> <ol> <li>Coffee <ol> <li>this</li> </ol> </li> <li>Tea</li><ol> <li>this</li> </ol> <li>Milk</li> </ol>

</body> </html>

(''')