HTML and CSS Reference
In-Depth Information
Figure 8-7. The “tel” keyboard input on mobile devices
As you can see, when a user gives focus to the input field, the device's numerical keyboard is presetnted. Here is
some code that can be used to switch the keyboard for a better user experience.
if the input types aren't supported, the browser will default to a generic input of type “text.”
<!-- display a standard keyboard -->
<input type="text" />
<!-- display a telephone keypad -->
<input type="tel" />
<!-- display a URL keyboard -->
<input type="url" />
Search WWH ::

Custom Search