Forms & Controls
inputmode="decimal"
Hints at a numeric keyboard with a locale-dependent decimal separator. A minus key may be absent; validate and parse the actual submitted text separately. Global keyboard hint for editable content; the actual keyboard depends on device, locale and browser. It changes neither input type nor validation.
Formal Syntax & Structure
html syntaxhtml
inputmode="decimal"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| inputmode | keyword | Hints at a numeric keyboard with a locale-dependent decimal separator. A minus key may be absent; validate and parse the actual submitted text separately. |
Working Example
Example Snippethtml
<label> Amount <input type="text" inputmode="decimal"></label>