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 Forms HTML Mastery

Laksakan Krishnapillai
PLUS
Laksakan Krishnapillai
Courses Plus Student 1,839 Points

Add three items to an ordered list inside shopping list div

Ordered list of the 3 items are wrapped up under the li tag inside the div tag, but says it is incorrect.

1 Answer

Laksakan Krishnapillai The challenge is to create ordered list with three items. Ordered list in HTML is <ol> and list item in HTML is &ltli>.

If you want to create an ordered list you should specify opening and closing ordered list. Opening of an ordered list is <ol> and closing of an ordered list is </ol>

Inside opening and closing ordered list you can insert list items. List items are specified in HTML by <li> (opening list) and </li>(closing list).

Yes, Check the code below

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

I hope it helps.