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">
<p><label> datetime:
<input type="datetime" name="datetime">
<p><label> datetime-local:
<input type="datetime-local" name="datetime2">
<p><label> time:
<input type="time" name="time">
<p><label> month:
<input type="month" name="month">
<p><label> week:
<input type="week" name="week">
It should be possible to restrict the dates chosen, but currently any restrictions must be
controlled with script.
Search WWH ::

Custom Search