inputmode
is an attribute that is used with the input element in HTML. It is used as a hint of the expected data type that is to be entered by the user in an input element. It also helps the browser to determine which type of virtual keyboard to display.
inputmode
can have the following values:
-
none
- No hints for the browser and therefore a virtual keyboard will not appear. The page will handle controlling which keyboard appears. -
text
- Displays the standard keyboard with the current locale. -
decimal
- Displays the number pad portion of the virtual keyboard including decimal or comma depending on the locale. The minus sign might also be displayed depending on the device. -
numeric
- Display only the number pad portion of the virtual keyboard. The minus sign might also be displayed depending on the device. -
tel
- Displays a telephone keypad which is composed of the number pad, asterisk (*), and pound (#). -
search
- Displays a keyboard appropriate for searching. The Enter key might have a label called “Search”. -
email
- Displays a keyboard appropriate for email addresses. Keyboard should include ‘@’. -
url
- Displays a keyboard appropriate for URLs. Keyboard should include ‘/’.