# Type

> Represents the control types of the HTML <input> element, shared with <button> for the form-submission types.

[API reference](/docs/api/index.md) › [HTML Attribute](/docs/extensions/html-attribute/reference/index.md) › [Values](/docs/extensions/html-attribute/reference/values/index.md) › Type

| enum | `UIAwesome\Html\Attribute\Values\Type` |
| --- | --- |
| Backed by | `string` |
| Source | [`src/Values/Type.php`](https://github.com/ui-awesome/html-attribute/blob/main/src/Values/Type.php#L15) |

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>.

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-BUTTON"></span>`BUTTON` | `'button'` | `button` — Push button type for `<input>` and `<button>` elements. |
| <span id="case-CHECKBOX"></span>`CHECKBOX` | `'checkbox'` | `checkbox` — Check box input control (`<input>`). |
| <span id="case-COLOR"></span>`COLOR` | `'color'` | `color` — Color picker input control (`<input>`). |
| <span id="case-DATE"></span>`DATE` | `'date'` | `date` — Date input control (`<input>`). |
| <span id="case-DATETIME_LOCAL"></span>`DATETIME_LOCAL` | `'datetime-local'` | `datetime-local` — Date and time input control without a time zone (`<input>`). |
| <span id="case-EMAIL"></span>`EMAIL` | `'email'` | `email` — Email address input control (`<input>`). |
| <span id="case-FILE"></span>`FILE` | `'file'` | `file` — File selection input control (`<input>`). |
| <span id="case-HIDDEN"></span>`HIDDEN` | `'hidden'` | `hidden` — Hidden input control (`<input>`). |
| <span id="case-IMAGE"></span>`IMAGE` | `'image'` | `image` — Graphical submit button (`<input>`). |
| <span id="case-MONTH"></span>`MONTH` | `'month'` | `month` — Month and year input control (`<input>`). |
| <span id="case-NUMBER"></span>`NUMBER` | `'number'` | `number` — Numeric input control (`<input>`). |
| <span id="case-PASSWORD"></span>`PASSWORD` | `'password'` | `password` — Password input control (`<input>`). |
| <span id="case-RADIO"></span>`RADIO` | `'radio'` | `radio` — Radio button input control (`<input>`). |
| <span id="case-RANGE"></span>`RANGE` | `'range'` | `range` — Slider control (`<input>`). |
| <span id="case-RESET"></span>`RESET` | `'reset'` | `reset` — Resets the form to its initial values (`<input>` and `<button>`). |
| <span id="case-SEARCH"></span>`SEARCH` | `'search'` | `search` — Search input control (`<input>`). |
| <span id="case-SUBMIT"></span>`SUBMIT` | `'submit'` | `submit` — Submits the form (`<input>` and `<button>`). |
| <span id="case-TEL"></span>`TEL` | `'tel'` | `tel` — Telephone number input control (`<input>`). |
| <span id="case-TEXT"></span>`TEXT` | `'text'` | `text` — Single-line text input control (`<input>`). |
| <span id="case-TIME"></span>`TIME` | `'time'` | `time` — Time input control without a time zone (`<input>`). |
| <span id="case-URL"></span>`URL` | `'url'` | `url` — URL input control (`<input>`). |
| <span id="case-WEEK"></span>`WEEK` | `'week'` | `week` — Week input control (`<input>`). |