Type de saisie | Syntaxe | Exemple |
---|---|---|
date
|
yyyy-mm-dd |
<input type="date" min="2019-12-25" step="1"> |
month
|
yyyy-mm |
<input type="month" min="2019-12" step="12"> |
week
|
yyyy-W## |
<input type="week" min="2019-W23" step=""> |
time
|
hh:mm |
<input type="time" min="09:00" step="900"> |
datetime-local
|
yyyy-mm-ddThh:mm |
<input type="datetime-local" min="2019-12-25T19:30"> |
number
|
<number> |
<input type="number" min="0" step="5" max="100"> |
range
|
<number> |
<input type="range" min="60" step="5" max="100"> |