inputmode
Widely available since 2024-06-07
The inputmode
global HTML attribute gives a hint about what type of data is to be entered into an <input>
element, such as text
, numeric
, or email
, so the browser may help the user enter data using an adapted input mechanism, such as an on-screen virtual keyboard.
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 66 Released on 2018-04-17
- Chrome Android 66 Released on 2018-04-17
- Edge 79 Released on 2020-01-15
- Firefox 95 Released on 2021-12-07
- Firefox for Android 79 Released on 2020-07-28
- Safari 12.1 Released on 2019-03-25
- Safari on iOS 12.2 Released on 2019-03-25
Specifications
- HTML (#attr-inputmode), from HTML Workstream (WHATWG).
View web-platform-tests results for this feature - View the feature source file - Edit the feature - Report an issue about this feature