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

Maria H
Maria H
6,737 Points

Add 3 list items to order list. Seems simple, not sure why it gives me an error.

This should be a simple task but I'm not sure what I have overlooked to keep receiving an error..

index.html
<!DOCTYPE html>
<html>
  <head>
    <title>HTML Mastery Challenge</title>
  </head>
  <body>
    <h1>HTML Mastery Challenge</h1>

    <!-- Write your code below -->
<div>
  <h2>Shopping List<h2>

<ol>
   <li>candy</li>
   <li>cookies</li>
   <li>ice cream</li>

</ol>

    </div>

  </body>
</html>

1 Answer

Alfonso Montano
Alfonso Montano
2,970 Points

You have a syntax error. It happens to me all the time. Make sure you close your h2 tag

<h2></h2>
Maria H
Maria H
6,737 Points

Thank you Alfonso! I figured it was something simple, I need to work on attention to detail. Cheers!