HTML and CSS Reference
In-Depth Information
Once you've found the forms, check each input field to see whether it matches any of the expected types. There
are ten new types you can use:
email
date
time
datetime
datetime-local
month
week
number
url
range
Adding one of these types only affects the client and has no effect on the server. However, you need to make
sure that the format the server is accepting is indeed the format the client is sending. For example, dates are
sent in the ISO standard form YYYY-MM-DD (e.g., 2008-06-23). If you expect dates in a different form, such as
MM/DD/YYYY, you'll need to change the form processor on the server to accept the new format before deploying
this on the client.
email
The email data type is used for e-mail addresses of the usual syntax: elharo@metalab.unc.edu, for example.
When you tag an input field as type email , the browser can inspect the user's address book to offer options for
autocompletion, as shown in Figure 7.3 .
Figure 7.3. Autocompleting e-mail addresses
[View full size image]
Search WWH ::




Custom Search