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