Edit

HTML form Tag

The <form> tag is used to create a form in HTML document. User can submit his/her information to web server by using HTML form. HTML form contain user information such as username, password, address details, credit card information, and so on. The form element mostly use two attributes. First attribute is action. Action attribute indicate that where user want to perform his form action. Second attribute is method. The HTML form is submitted by two method. First method is GET and Second one is POST.  

Example of Code 

<form action="" method="post"> 
    <p>First name: <input type="text" name="first-name">
      <button type="submit" value="Submit">Submit</button>
    </p> 
</form>

Output

    

First name: