Forms & Controls

inputmode="decimal"

Build a form with the HTML form generator

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

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