Forms & Controls
inputmode="numeric"
Hints at a digits-oriented keyboard, useful for PINs and numeric identifiers. Keep the input type text when leading zeros matter; this hint does not restrict characters. 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="numeric"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| inputmode | keyword | Hints at a digits-oriented keyboard, useful for PINs and numeric identifiers. Keep the input type text when leading zeros matter; this hint does not restrict characters. |
Working Example
Example Snippethtml
<label> PIN <input type="text" inputmode="numeric"></label>