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!

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


Why isn't that correct?


<!DOCTYPE html>
    <title>HTML Mastery Challenge</title>
    <h1>HTML Mastery Challenge</h1>

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




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.