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

Correcting the code challenge

I have trouble when correcting the code challenge. Even when the correct response is added I cannot get beyond the same error response. http://screencast.com/t/WGJVCCJK7k

8 Answers

Jacob Miller
Jacob Miller
12,466 Points

You need to take the closing list item tag from the end of "Shapes", and put it after the closing ordered list tag that is below the "Shapes" list item. Look at my code above to see what I mean. Also, make sure you're adding in the correct list items - they want you to put "Square" and "Circle" list items inside the ordered list inside the "Shapes" list item.

Jacob Miller
Jacob Miller
12,466 Points

In other words, the ordered list needs to be between the opening and closing list item tags.

<li>
    /* Put your ordered list in here*/
</li>

Hi Paula,

Please post your code.

Jeff

Hello Jeff,

Here is the code. Thanks.

Bummer! Try adding the ordered list inside the list item "Shapes" Preview Recheck work

index.html

1

<!DOCTYPE html>

2

<html>

3

<head>

4

<title>HTML Lists Challenge</title>

5

</head>

6

<body>

7

8

<h1>HTML Lists Challenge</h1>

9

<ol>

10

  <li>Stop</li>

11

  <li>Drop</li>

12

  <li>Roll</li>

13

</ol>

14

15

<ul>

16

  <li>Shapes</li>

17

    <ol>

18

      <li>About</li>

19

      <li>Contact</li>

20

    </ol>

21

  <li>Colors</li>

22

</ul>

23

24

25

<!-- Write your code below -->

26

27

28

</body>

29

</html>

30

Hi Paula,

At the bottom of your text box is a link to the Markdown Cheatsheet that will show how to post your code. Also you can look Here for an example.

Jeff

Jacob Miller
Jacob Miller
12,466 Points

It looks like you're adding the <ol> between the list items of the <ul>, not inside the "Shapes" list item. Code should look like this:

<ul>
    <li>Shapes
        <ol>
            <li>Square</li>
            <li>Circle</li>
        </ol>
    </li>
    <li>Colors</li>
</ul>

Hi Jacob..

I just did it again and I received the same "bummer" response. Thanks for your help

Paula

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

    <h1>HTML Lists Challenge</h1>
    <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>


    <!-- Write your code below -->


  </body>
</html>

Thanks very much.. and now I know how to post the code.