Decimal
The value decimal assures that along with digits from 0 to 9 the locale-specific decimal separator (“.” or “,”) must be displayed. ‘Minus’ key may or may not be displayed.
Syntax:
<input type="text" inputmode="decimal" />
HTML inputmode Attribute
The inputmode
attribute in HTML is used to provide a hint to browsers about the type of input expected from the user. The ‘inputmode’ attribute allows you to specify the type of data expected to be entered into a text field on a phone or tablet (any device with a virtual keyboard).
Note: Using inputmode attributes is a must while dealing with textboxes as it increases the ease of user Input.