HTML and CSS Reference
In-Depth Information
A variety of date controls can now be directly created by setting the type attribute to
date , datetime , datetime-local , month , week , or time . Several of these controls are
demonstrated here:
<p><label> date:
<input type="date" name="date">
</label></p>
<p><label> datetime:
<input type="datetime" name="datetime">
</label></p>
<p><label> datetime-local:
<input type="datetime-local" name="datetime2">
</label></p>
<p><label> time:
<input type="time" name="time">
</label></p>
<p><label> month:
<input type="month" name="month">
</label></p>
<p><label> week:
<input type="week" name="week">
</label></p>
It should be possible to restrict the dates chosen, but currently any restrictions must be
controlled with script.
Search WWH ::




Custom Search