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

Katie O'Connell
PLUS
Katie O'Connell
Courses Plus Student 23,728 Points

can you please look over my code

code check

index.html
<!DOCTYPE html>
<html>
  <form action = "index.html" method = "post">
  <head>
    <meta charset="utf-8">
    <title>HTML Forms</title>
    <input type = "text" id = "name" name= "user_name">
    <input type= "email" id= mail name="user_email">
    <input type= "password" id= "password" name= "user_password">
    <textarea id = "comment" id="user_comment"> </textarea>
    <textarea id = "bio" name = "user_bio"> </textarea>
    <button type= "submit"> sign up </button>
    </form>
  </head>
  <body>

  </body>
</html>

2 Answers

Quick glance: <form> <head></form></head> they are mixed.

<head>
  <form>
  </form>
<head>

Also a reminder that your page content goes into the <body></body> tags and not in the <head></head> tags. Check HTML for beginners it's one of the first things you learn.

<html>
 <head>
 <head>
 <body>
    <form>
    </form>
 </body>
</html>

You put spaghetti in a plate and then pour saus over it... Well same here: you don't put your spaghetti on the table and then put a plate on it and then pour saus over it.

Hope this helps,
Cc

ivana kantnerova
ivana kantnerova
15,761 Points
<!DOCTYPE html>
<html>
  <head>        // is not visible on the page (the title is visible on the page tab)
    <meta charset="utf-8">  
    <title>HTML Forms</title>       
  </head>
  <body>        // everything between <body></body> is visible on the page
    <form action = "index.html" method = "post">
        <input type = "text" id = "name" name= "user_name">
        <input type= "email" id= mail name="user_email">
        <input type= "password" id= "password" name= "user_password">
        <textarea id = "comment" id="user_comment"> </textarea>
        <textarea id = "bio" name = "user_bio"> </textarea>
        <button type= "submit"> sign up </button>
    </form>
  </body>
</html>