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

What's the problem

In this challenge it says add 3 list items to an ordered list inside of your div. I added

    <div>
        <h2>Shopping List<h2>
        <ol>
          <li>Hi</li>
          <li>Hey</li>
          <li>Ho</li>
        </ol>

It won't let me go on. What's the issue Here?

Logan R
Logan R
22,989 Points

Your code all seems right and I am not sure why it is giving you the error. I tried myself and gave me the green arrow. Maybe try adding a </div>?

<div>
   <h2>Shopping List</h2>
   <ol>
     <li>asdf</li>
     <li>asdf</li>
     <li>asdf</li>
   </ol>
    </div>
Logan R
Logan R
22,989 Points

Maybe try adding a < /div >?

(It deleted the tag without spaces and I can't edit the post xD sorry lol)

4 Answers

Mark Wilkie
Mark Wilkie
7,427 Points

Make sure all your block element tags are closed (div tags, h tags, p tags etc).

whats the link to the question? is it unordered?

<ul> not <ol>

<ul> not <ol>