files/en-us/web/api/htmlelement/inputmode/index.md
{{ APIRef("HTML DOM") }}
The {{domxref("HTMLElement")}} property inputMode reflects the value of the element's inputmode attribute.
It provides a hint about the type of data that might be entered by the user while editing the element or its contents. This allows the browser to display an appropriate virtual keyboard.
It is used primarily on {{HTMLElement("input")}} elements, but is usable on any element in contenteditable mode.
This attribute may have one of the following values:
decimal
email
none
numeric
search
tel
text
url
For details on the usage of this attribute, see the page for the inputmode HTML attribute that this property reflects.
{{Specifications}}
{{Compat}}