Is it okay to use <input type="tel"/> now?

HtmlMobile WebsiteBackwards Compatibility

Html Problem Overview


I'm working on a mobile phone web app and I have several text fields that could benefit from <input type="tel"/>. iPhones will adjust the keyboard for the user, but I'm worried about breaking backwards compatibility. What I'm hoping is that browsers/phone that support this can assist the user and other browser will fall back to a standard text field? Is this an acceptable practice? Does it even work?

Html Solutions


Solution 1 - Html

Yes, any unsupported type will revert to the 'type=text' format.

I found a good page which lists out all the existing input types. I tried looking at it from different browsers, a bit interesting. Don't know if it will help you or not.

http://miketaylr.com/pres/html5/forms2.html

Solution 2 - Html

Browsers will fall back to type="text" when they encounter unsupported input type. So I think it's OK to use type="tel".

Solution 3 - Html

Short answer: yes. As @el.pescado mentions, browsers fall back to type=text when they don't understand the type. For more info about the other cool features you get from HTML5 forms, check out A Form of Madness, which is the forms chapter in Dive Into HTML5.

Solution 4 - Html

It is ok. Browsers will use type=text when they encounter unsupported types.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMichaelView Question on Stackoverflow
Solution 1 - HtmlanimusonView Answer on Stackoverflow
Solution 2 - Htmlel.pescado - нет войнеView Answer on Stackoverflow
Solution 3 - HtmlHank GayView Answer on Stackoverflow
Solution 4 - HtmlUsername NameView Answer on Stackoverflow