Numeric
The value numeric assures that digits from 0 to 9 should be displayed on the on-screen keyboard. ‘Minus’ key may or may not be displayed.
Syntax:
<input type="text" inputmode="numeric" />
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.