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 Form Basics Create a Submit Button

help

help

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>HTML Forms</title>
  </head>
  <body>

    <form action="index.html" method="post"> 

    <input type="text" id="name" name="user_name">

    <textarea id="comment" name="user_comment">

       <button type="submit">Submit Comment</button>

  </body>
</html>

Could you please stop to post every question twice...

3 Answers

Michael Afanasiev
PLUS
Michael Afanasiev
Courses Plus Student 15,596 Points

Hi Alex,

You must close your text area element first before you will be able to close the form. Please review this code and compare it with yours:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>HTML Forms</title>
  </head>
  <body>

    <form action="index.html" method="post"> 
      <input type="text" id="name" name="user_name">
      <textarea id="comment" name="user_comment"></textarea>
      <button type="submit">Submit Comment</button>
    </form>

  </body>
</html>

Also, there is no need to post 4 times the same question. You already got an answer from "Live Top" in a different post. You must be patient when getting an answer, it may take a few minutes and sometimes even more. This is not live chat.

In addition, make sure when asking a question you provide a little bit more info than "Help" as to what are you trying to do and what is the task is asking from you, this can lead to much much much faster answers.

Hope this helps. :)

He actually post it four times for some reason

Michael Afanasiev
Michael Afanasiev
Courses Plus Student 15,596 Points

Thanks Tobias, changed my answer. Because people already replied to those, I can't delete them.

sorry i thought that the first time the question did not post sorry

Michael Afanasiev
Michael Afanasiev
Courses Plus Student 15,596 Points

It is fine, don't worry about it, just next time double check! :)

You have not closed the form element.

which one

The form element. Between button and body you should close form.