HTML and CSS Reference
In-Depth Information
FIGURE 2.4 The range slider
input type.
FIGURE 2.6 The color picker
input type.
FIGURE 2.5 The date picker
input type.
Let's now briefly look at the new form elements available in HTML5. Most of these
were created to give you easier, semantically richer ways of implementing form
controls that you already implement using kludges, because native mechanisms
were not available in HTML 4. See simple-form.html in the chapter2 folder for a
testable example.
NOTE: HTML5 forms are not supported as well across browsers as some of the other fea-
tures discussed earlier. To determine which HTML5 form features your current browser
supports, send it to Mike Taylor's “HTML5 inputs and attribute support” page at .I've referred you to this page rather
than just listing the supported features, because they seem to change rapidly.
Yo u c a in s e e e x a m p l e s i in Figures 2.4 through 2.6 .
<input type=”range”>
<input type=”date”>
<input type=”color”>
HTML5 also adds a few specialized text inputs, which expect more specific
types of data:
<input type=”url”>
<input type=”email”>
<input type=”tel”>
Search WWH ::

Custom Search