cheatsheets/html-input.md

59 lines
687 B
Markdown

---
title: "HTML: input tag"
layout: default
---
<input ...
disabled
required
checked
autofocus
autocomplete='off' <!-- autocomplete -->
autocompletetype='cc-exp'
autocapitalize='off' <!-- for mobiles -->
pattern='\d*' <!-- force numeric input in iOS -->
### Input types
Text:
* email
* hidden
* month
* password
* tel
* text
* search
* week
Time:
* date
* datetime
* datetime-local
* time
Etc:
* file
* radio
* checkbox
Buttons:
* button
* reset
* submit
* image
Numeric:
* number
* range
### Ref
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input