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

Ryan Holm
seal-mask
.a{fill-rule:evenodd;}techdegree
Ryan Holm
Front End Web Development Techdegree Student 12,726 Points

Issue with projects lately

Not sure why....but I've been having issues completing task within Treehouse. This is a very easy example, definitely should pass!

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

    <h1>HTML Lists Challenge</h1>

    <!-- Write your code below -->
    <ol>
      <li>Stop</li>
      <li>Drop</li>
      <li>Roll</li>
    </ol>

    <ul>
      <li>Shapes</li>
        <ol>
          <li>Size</li>
          <li>Height</li>
          <li>Length</li>
        </ol>
      <li>Colors</li>
    </ul>

  </body>
</html>

3 Answers

Hi Ryan,

When you are working with nested lists, you need to make sure the nested list starts inside of the parent li tag like this:

<ul>
  <li>List item one</li>
  <li>List item two (don't close the tag yet)
       <ol>
         <li>sub list item one</li>
         <li>sub list item two</li>
       </ol>
  </li> (now close List item two's tag)
  <li>List item three</li>
</ul>
Brendan O'Brien
Brendan O'Brien
9,066 Points

Ryan Holm , actually looking closer at your code there is a problem with your nested list.

Brendan O'Brien
Brendan O'Brien
9,066 Points

Looks like it should pass. But sometimes the code challenges are finicky. Can you copy and paste the challenge here? I can't remember what they are asking.

Brendan O'Brien There's a link to the code challenge this question originated from in the sidebar right under the Start Discussion button. Hope that helps!

James Barnett
James Barnett
39,199 Points

> Looks like it should pass. But sometimes the code challenges are finicky

Yes sometimes they can be finicky, however the vast majority of times someone posts on the forum the issue isn't with the code challenge itself.

Brendan O'Brien
Brendan O'Brien
9,066 Points

Yeah, I misread his code. Thought it looked good at first glance. Yeah, usually the challenges work well, but when they don't it can be really hard to tell if it's your code or the challenge.