HTML and CSS Reference
In-Depth Information
Figure 3-10. Date and time input fields in Chrome 12
Discussion
The
datetime
,
date
, and
time
family of input types, which also includes
month
,
week
,
and
datetime-local
, are excellent proof that new features in HTML5 are based on what
web designers and developers have been doing for years with various JavaScript libraries
and other solutions.
Opera has been the leader in generating date and time controls, rendering a calendar-
based date-picker control for
date
and a time spinner control for
time
, and many expect
other browsers to eventually follow its lead.
Webkit-based desktop browsers recently introduced support for these input types,
using spinners for both. User agents that do not support these input types revert to a
text input field.
For a look at browser support for the
date
and
time
input types, see
Table 3-3
.