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 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.