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

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.