Forms & Controls

inputmode="numeric"

Build a form with the HTML form generator

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

NameTypeDescription
inputmodekeywordHints 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>
HTML Reference