files/en-us/web/html/reference/global_attributes/inputmode/index.md
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.
This allows a browser to display an appropriate virtual keyboard.
It is used primarily on {{HTMLElement("input")}} elements, but is usable on any element in contenteditable mode.
It's important to understand that the inputmode attribute doesn't cause any validity requirements to be enforced on input. To require that input conforms to a particular data type, choose an appropriate <input> element type. For specific guidance on choosing {{HTMLElement("input")}} types, see the Value section.
The attribute can have any of the following values:
none
text (default value)
decimal
numeric
tel
{{HTMLElement("input/tel", '<input type="tel">')}} instead.search
{{HTMLElement("input/search", '<input type="search">')}} instead.email
{{HTMLElement("input/email", '<input type="email">')}} instead.url
{{HTMLElement("input/url", '<input type="url">')}} instead.{{Specifications}}
{{Compat}}
enterkeyhint global attribute