HTML Forms are required, when you want to collect some data from the site visitor. For example, during user registration you would like to collect information such as name, email address, credit card, etc.
The HTML form tag is used to create an HTML form and it has following syntax-
The input Element
The input element is the most important form element.
The input element can be displayed in several ways, depending on the type attribute.
Here are some examples:
Input Type-TEXT
Defines a one line input field for text input.
EXAMPLE
Input Type-Radio
Radio buttons let a user to select ONE option from a limited number of choices:
EXAMPLE
Input Type-Submit
Submit buttons let a user to submit the data that they enter in form.