HTML5 input types
It is a rare day at work when I don’t do anything related to forms. Be it creating forms from scratch, modifying existing forms, handling user interaction with them, whatever. I work with forms a lot. So that’s why one of the things in HTML5 I’m looking forward to the most is the overhaul of the elements and attributes used to create forms.
Among other form-related things, HTML5 adds a whole bunch of new values for the
That’s a lot of useful form controls you can create. Browser support isn’t all the way there yet of course, but some browsers do something useful with several of these input types. I’ve made a very simple test page for HTML5 input types so you can check which of them your browser handles.
To round this off, here are a few screenshots of the new input controls in browsers that support them.
<input type="tel"> in Safari on iPhone/iPod Touch:
<input type="url"> in Safari on iPhone/iPod Touch:
<input type="email"> in Safari on iPhone/iPod Touch:
<input type="number"> in Safari on iPhone/iPod Touch:
<input type="search"> in Safari 4.0.5 on Mac OS X:
<input type="range"> in Safari 4.0.5 on Mac OS X:
<input type="date"> in Opera 10.10 on Mac OS X:
<input type="email"> in Opera 10.10 on Mac OS X:
An interesting note is that on the iPhone/iPod Touch, the main difference between input types like
- Previous post: The modern workplace is optimised for interruptions
- Next post: Designing with Progressive Enhancement (Book review)
Subscribe / follow
DreamHost web hosting
Use the promo code 456BEREASTREET3 to save USD 20 when you sign up for DreamHost