Input this - input that, HTML5 new input types
Opera seams to support most of them and they have some good initial look there.
Date selection related.
Many times you need to create or integrate some control that will be a date-time picker, I've done this way to often and I'm sure that you also have. But why should we do something like this, this should be part of html and we should just style it with CSS. HTML5 makes this very simple with the date input types.
<input type="datetime" /> <input type="datetime-local" /> <input type="date" /> <input type="week" /> <input type="time" />Live example:
Emails, Phone and URL
|Email validation example on Opera 12|
|Input type email on iOS|
You could also style with CSS using input type specific selectors like input[type=radio]. Best thing about the input types by far is that they are semantically correct so mobile phones open input type specific view on the keyboard.
<form> <input name="email" type="email" pattern="[^ @]*@[^ @]*" value="" /> <input id="url" type="url" /> <input id="phone" type="tel" /> <input type="submit" /> </form>Live example:
|Input type phone on iOS|
ColorInput type that results in color picker.
<input type="color" />
Isn't this what you always wanted? ... at least when it comes down to html input.
NEW HTML5 input types, awesome!!! see demo
Demos - http://mitemitreski.com/demo/html5/input.html
W3 input element spec - http://www.w3.org/TR/2011/WD-html5-20110525/the-input-element.html
Support test - http://www.quirksmode.org/html5/tests/inputs_dates.html
Mozzila developers article - https://developer.mozilla.org/en-US/docs/HTML/Element/Input
Web Platform page - http://docs.webplatform.org/wiki/html/elements/input/type/search
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)