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

你。 提交于 2019-11-28 04:47:59

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

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

Hank Gay

Short answer: yes. As @el.pescado mentions, browsers fall back to type=text when they don't undertand 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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!