title | category | layout | updated | weight |
---|---|---|---|---|
Input tag |
HTML |
2017/sheet |
2017-10-30 |
-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' |