Label:
- It is used to tell the user what to enter in the input box.
- It is best to connect label with input using for and id.
- When the user click on the label, input gets focused.
Example :
type="email" id="email">
type="password" id="password">
Button:
- It is used to perform an action when clicked like submitting form and resetting form.
Types of button:
- button
- submit
- reset
*Example : *
Click Me
select:
- It is used to create drop down list.
- It allows users to choose one or more options.
Example :
Here the value is what gets sent to server.
For Multiple Selection :
Option:
It is used to define items inside a dropdown.
It can have value attribute.
We can mention default selected option.
We can disable a option.
Example :
Textarea:
- It is used to take multline input from user.
Example :