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

Shalaidah Velain
Shalaidah Velain
1,311 Points

Why wont this work?

So I'm at the HTML mastering code test and its asking me to put a Ordered list inside of a div under this Header called shopping list so i do as it ask and its showing up on the preview as I'm right but its saying I'm wrong....can someone help?

This is the code I'm using pay no attention to the slashes they are so the code can be seen i guess?

<div> <h2>Shopping List</h2> <br> <ol> <li>1</li> <li>2</li> <li>3</li> </ol>

</div>

I've tried putting no text in them I've tried putting food items in them but no matter what i do even if it shows right on the preview its saying I'm wrong...Is there something wrong with my code, because I looked it up and it said i was right too...I even copy pasted in the code from somewhere else and it said it was wrong.

5 Answers

Ryno Botha
PLUS
Ryno Botha
Courses Plus Student 4,055 Points

Does it look like this when you're finished with Task 3?

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

Task 4: Just asking to Make Text Bold in a P tag.

Callum King
Callum King
6,470 Points

Here is what I just used and it came up correct

    <!-- Write your code below -->
    <div>
      <h2>Shopping List</h2>
          <ol>
            <li></li>
            <li></li>
            <li></li>
          </ol>
    </div>
Shalaidah Velain
Shalaidah Velain
1,311 Points

Yeah it looks just like that! I have no idea why its not working D:

Callum King
Callum King
6,470 Points

Can you post your code?

Shalaidah Velain
Shalaidah Velain
1,311 Points

I just got it to work. My code was right I just had to close the page and restart it....which I find weird.

Marc Abrate
Marc Abrate
22,307 Points

That has happened to me once or twice.