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

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,932 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>