Use of Text Field, Text box, Text Area, Checkbox,Dropdownlist and Radio Button in HTML
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:
Text fields are used to allow user to input different types of texts,i.e., letters, numbers etc.
Checkbox:
Checkboxes are used to allow the user to select one or more options of a limited number of choices.
Radio button:
Radiobutton is used to allow the user to select one option out of a number of choices.
Dropdown Box:
A dropdown box is type of list from where an user can select one option out of many given choices.
Example
Text Area:
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.