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.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Use of Text Field View All Comments
Post your Comment