You’re reading the English version of this content since no translation exists yet for this locale. Help us translate this article!

The inputmode global attribute is an enumerated attribute that hints at the type of data that might be entered by the user while editing the element or its contents. It can have the following values:

No virtual keyboard. This is for when the application or site implements its own keyboard input control.
Standard text input keyboard for the user's current locale.
Fractional numeric input keyboard containing the digits and decimal separator for the user's locale (typically . or ,). Devices may or may not show a minus key (-).
Numeric input keyboard, but all that is needed are the digits 0–9. Devices may or may not show a minus key.
A telephone keypad input, including the digits 0–9, the asterisk (*), and the pound (#) key. Inputs that require a telephone number should typically use <input type="tel"> instead.
A virtual keyboard optimized for search input. For instance, the return/submit key may be labeled “Search”, along with possible other optimizations.
A virtual keyboard optimized for entering email addresses. Typically includes the @ character as well as other optimizations. Inputs that require email addresses should typically use <input type="email"> instead.
A keypad optimized for entering URLs. This may have the / key more prominent, for example. Enhanced features could include history access and so on. Inputs that require a URL should typically use <input type="url"> instead.

If this attribute is not set, its default value is text.


Specification Status Comment
HTML Living Standard
The definition of 'inputmode' in that specification.
Living Standard

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
inputmodeChrome Full support 66Edge ? Firefox No support NoIE ? Opera Full support 53Safari No support NoWebView Android Full support 66Chrome Android Full support 66Firefox Android No support NoOpera Android Full support 47Safari iOS Full support 12.2Samsung Internet Android ?


Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

See also