Is there an HTML attribute to tell smartphone keyboards to show special email keys?
Asked Answered
M

1

6

I notice that when using my touch-screen smartphone (no physical keyboard) that when an app asks for an email address to be entered in a textbox, the on screen keyboard is modified slightly to provide specialized keys that enter blocks of text, like '.com' or push some characters to the foreground key, like '@'.

Is there an HTML attribute or style that I can add to my HTML input boxes that will tell the smartphone/browser to provide these specialized keys?

Missi answered 29/4, 2010 at 4:51 Comment(0)
T
4

according to

http://www.bennadel.com/blog/1721-Default-To-The-Numeric-Email-And-URL-Keyboards-On-The-iPhone.htm

you should use <input type="email"/>

it does not work on android.

Taal answered 29/4, 2010 at 5:2 Comment(1)
Great find Keith (and Ben). Thanks. I sure wish it was based on a name in the class attribute, rather than the input type. But oh well.Missi

© 2022 - 2024 — McMap. All rights reserved.