Specifies a dummy button.
Use JavaScript to add functionality.
checkbox
A checkbox allows the user to choose a single value to be selected/deselected.
color
A control for choosing a color.
date
A control for entering year, month, and day, with no time.
datetime-local
A control for entering year, month, day and time, with no timezone.
email
A field to input email address.
file
A field to upload files like image, .txt, .pdf etc.
hidden
A field that is not displayed but whose value is submitted to the server.
image
Used to create graphical submit buttons.
month
A control for entering month and year only.
Number
A control for entering numbers only.
password
A control for masking a character immediately when a user is typed, either by * or •.
radio
Defines a radio button.
range
Specify a numeric value which must be no less than the min value, and no more than the max value.
reset
Resets all form values to default values.
search
A text field designed for the user to enter search queries into.
submit
Submits the form to the specified URL, when clicked.
tel
A text field used to let the user enter and edit a telephone number. Here the input value is not automatically validated.
text
A text field used to create a basic single-line text field.
time
A control for entering time.
url
A text field used to let the user enter and edit a URL.
week
A control which allows easy entry of a year plus the number of the week during that year.
checkbox
A checkbox allows the user to choose a single value to be selected/deselected.
Example
HTML Online Editor
<!DOCTYPE html>
<html>
<body>
<p>What do you like to have?</p>
<formaction="/user-choice.php">
<inputtype="checkbox"name="hot"value="Tea">A cup of tea<br><br>
<inputtype="checkbox"name="cold"value="Ice Cream"> A bowl of ice cream<br><br>
<inputtype="submit"value="Order">
</form>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<p>When will you wake up?</p>
<formaction="/user-time.php">
<inputtype="time"name="myWakeup">
<inputtype="submit">
</form>
</body>
</html>