HTML5 is currently being developed as the next major revision of HTML, and it will bring with it over a dozen new input types that can be used in our forms, hopefully making my job easier, and improving the experience of the user.
I have picked out a few elements which I think will have the biggest impact:
Date and Time Picker
HTML5 finally defines a way to include a native date picker control without having to script it yourself. In fact, it defines six: date, month, week, time, date + time, and date + time - timezone.
Email and web address input
This new addition will mainly benefit users of touch-screen devices such as the iPhone. By specifying that an input box is expecting an email address or web address, the virtual keyboard can be optimized by removing the space bar and replacing it with three more useful keys: a period, a forward slash, and a “.com” button.
So, when can we expect to see these changes? Well, if you are a developer, you can use them in your code right now! Unfortunately, you will not be able to see the results until browser support improves, but as all of these features degrade gracefully in every browser, your forms will still work…even in IE6!