Type
API reference › HTML Attribute › Values › Type
Represents the control types of the HTML <input> element, shared with <button> for the form-submission types.
Elements that read type as an open MIME hint, such as <a>, <link>, <script>, <source>, and <style>, take
a plain string instead.
See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types.
| Case | Value | Description |
|---|---|---|
BUTTON | 'button' | button — Push button type for <input> and <button> elements. |
CHECKBOX | 'checkbox' | checkbox — Check box input control (<input>). |
COLOR | 'color' | color — Color picker input control (<input>). |
DATE | 'date' | date — Date input control (<input>). |
DATETIME_LOCAL | 'datetime-local' | datetime-local — Date and time input control without a time zone (<input>). |
EMAIL | 'email' | email — Email address input control (<input>). |
FILE | 'file' | file — File selection input control (<input>). |
HIDDEN | 'hidden' | hidden — Hidden input control (<input>). |
IMAGE | 'image' | image — Graphical submit button (<input>). |
MONTH | 'month' | month — Month and year input control (<input>). |
NUMBER | 'number' | number — Numeric input control (<input>). |
PASSWORD | 'password' | password — Password input control (<input>). |
RADIO | 'radio' | radio — Radio button input control (<input>). |
RANGE | 'range' | range — Slider control (<input>). |
RESET | 'reset' | reset — Resets the form to its initial values (<input> and <button>). |
SEARCH | 'search' | search — Search input control (<input>). |
SUBMIT | 'submit' | submit — Submits the form (<input> and <button>). |
TEL | 'tel' | tel — Telephone number input control (<input>). |
TEXT | 'text' | text — Single-line text input control (<input>). |
TIME | 'time' | time — Time input control without a time zone (<input>). |
URL | 'url' | url — URL input control (<input>). |
WEEK | 'week' | week — Week input control (<input>). |