By using form in HTML, users are allowed to enter or select different types of information. A form contains form elements checkbox, text field, radio button etc.) through which users can input their data. A form is created using <form> tags. The most common form tag is <input> tag. Input tag contains type attribute which specifies different types of inputs.
<form> <input> <input> </form>
Text fields are used to allow user to input different types of texts,i.e., letters, numbers etc.
Checkboxes are used to allow the user to select one or more options of a limited number of choices.
Radiobutton is used to allow the user to select one option out of a number of choices.
A dropdown box is type of list from where an user can select one option out of many given choices.
A text area is an area where an user can write as many texts as he wishes.
The Action attribute and the Submit button:
The Action attribute of form contains the name of a file where the contents of the form has to be sent when an user clicks on a submit button.
Liked it! Share this Tutorial