<form action = "example.com" method="Post">
<input type = "text" name = "firstname" />
<input type = "text" name = "lastname" />
<input type = "submit" value = "submit" />
<input type = "text" value = "Reset" />
HTML Forms are required when you want to collect some data from the site visitor.
HTML Forms are required when you want to collect some data from the site visitor. For example registration information: name, email address, credit card, etc.
A form will take input from the site visitor and then will post your back-end application such as CGI, ASP Script or PHP script etc. Then your back-end application will do required processing on that data in whatever way you like.
Form elements are like text fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc. which are used to take information from the user.
The INPUT element defines an input field. When you specify "submit" (or "reset") for the type attribute of this element, a submit button (or a reset button) is created.
type = "submit"
Creates a submit button on the form.
When this button is clicked, the form data is submitted to the server.
type = "reset"
Creates a reset button on the form.
When this button is clicked, the input is reset.
name = ""
The button name is used to identify the clicked submit button.
value = ""
Value is the text displayed on the button.