| title | Input tag |
|---|---|
| category | HTML |
| layout | 2017/sheet |
| updated | 2017-10-30 |
| weight | -3 |
<input ...
disabled
required
checked autofocus autocomplete='off' <!-- autocomplete -->
autocompletetype='cc-exp'
autocapitalize='off' <!-- for mobiles -->
pattern='\d*' <!-- force numeric input in iOS -->- hidden
- password
- tel
- text
- search {: .-four-column}
- date
- time {: .-four-column}
- month
- week
- datetime
- datetime-local {: .-four-column}
- file
- radio
- checkbox {: .-four-column}
- button
- reset
- submit
- image {: .-four-column}
- number
- range {: .-four-column}
| Type | Example |
|---|---|
type='date' |
|
type='time' |
| Type | Example |
|---|---|
type='datetime' |
|
type='datetime-local' |
datetime and datetime-local fields are not widely supported.
| Type | Example |
|---|---|
type='number' |
|
type='range' |
| Type | Example |
|---|---|
type='text' |
|
type='password' |
|
type='search' |
|
type='tel' |