docs.rodeo

MDN Web Docs mirror

inputmode

{{HTMLSidebar("Global_attributes")}} 

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 Values section.

Values

The attribute can have any of the following values:

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN