HTML Input Types Cheatsheet
HTML Input Types Cheatsheet
Button
This input type is used to define a input field as a button.
Checkbox
This input type is used to create a checkbox a input field.
<input type=”checkbox”>
Color
This input type is used to create a input field which contain color.
<input type=”color”>
DateTime
This input type is used to create an input field that contains the date and time.
<input type=”datetime”>
Email
Email input type is used to create an input field which will take e-mail address as input
text.
<input type=”email”>
File
The file input type is used for the input field which takes a file as input from the user.
<input type=”file”>
<input type=”image”>
Number
This number input type is used to define an input field that contains a numeric value.
<input type=”number”>
Password
This password input type is used to define an input field that contains which contains
input data as password.
<input type=”password”>
Radio
The radio input type is used to create a radio button.
<input type=”radio”>
Range
This range input type is used to define a control for entering a numeric value. The
default range value of input type range is from 0 to 100.
<input type=”range”>
Reset
Reset input type is used to create a reset button.
Tel
This input type is used to define a input field that contains a telephone number as
input data.
<input type=”tel”>
Text
Text input type is used to create a input field which takes text as input data.
<input type=”text”>
Time
The time input type is used to create an input field which allow the user to select a
time.
<input type=”time”>
URL
This URL input type is used to create an input field that contain a URL address as an input data.
<input type=”url”>
Week
This week input type is used to create an input field that allows the user to select a week and
year.
<input type=”week”>