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 Mastery: Ordered List Code Challenge

In this HTML Mastery Challenge I am asked to add three items to an ordered list inside of the div tags. I do not know what I am doing wrong (I realize that the <li>s are not named in the code i give here, but even with them in it does not work)

<div>
      <h2> Shopping List <h2>
        <ol>
          <li> </li>
          <li> </li>
          <li> </li>
        </ol>
    <div>

5 Answers

I can see that you ended your li tags but did not end the div or your h2 tag.You might have also forgotten to end one of your angle brackets.

<div> <h2>Shopping List</h2> <ol> <li> </li> <li> </li> <li> </li> </ol> </div>

Hope that helps...

Oops I used html but I guess this forum takes the html and actually implements it instead of uses it haha

Matt Campbell
Matt Campbell
9,767 Points

Type something in each list item. Like apples, pears, sugar.

Chase Lee
Chase Lee
29,275 Points

Try closing the "h2" tag, the "div" tag, and also take out the space around "Shopping list". Hope that helped.