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

Anna Parker
PLUS
Anna Parker
Courses Plus Student 4,399 Points

form tag

This is probably completely obvious, but... I'm doing a code challenge that says 'Add a form tag to your page.' I added:

<form></form>

Why isn't that correct?

Thanks!

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></li>
        <li></li>
        <li></li>
      </ol>
      <p><strong>BOLD</strong></p

      <form></form>

    </div>

  </body>
</html>

5 Answers

Benjamin Larson
Benjamin Larson
34,055 Points

Your form tags are correct, the problem was actually that your closing </p> tag is missing the last ">". This should've been picked up at the previous step but it passed for some reason.

Those form tags look good, just need to close the p tag.

Matthew Tran
Matthew Tran
16,343 Points

Close yoour </p> tag and add the form tag outside of the <div> tag.