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

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.