<input type="text"> defines a one-line text input field:
The <input type="email"> is used for input fields that should contain an e-mail address. Depending on browser support, the e-mail address can be automatically validated when submitted.
<input type="password"> defines a password field:
<input type="radio"> defines a radio button. Radio buttons let a user select ONLY ONE of a limited number of choices:
<input type="checkbox"> defines a checkbox. Checkboxes let a user select ZERO or MORE options of a limited number of choices.
<input type="submit"> defines a button for submitting form data to a form-handler.
<input type="reset"> defines a reset button that will reset all form values to their default values:
<input type="button"> defines a button:
This is how the HTML code above will be displayed in a browser:
See this example:
Output:
HTML5 added several new input types:
You can also add restrictions to dates:
Birthday (date and time):