inputmode values
Which keyboard does each inputmode value show?
Each inputmode value asks the phone for a different on-screen keyboard, while the field still accepts and submits whatever text is typed.
| Value | Keyboard shown | Use it for |
|---|---|---|
none | No on-screen keyboard | Fields that open your own picker or keypad |
text | The standard keyboard (the default) | Ordinary text |
decimal | Digits plus a decimal separator | Prices, amounts, weights |
numeric | Digits 0–9 only | ZIP codes, one-time codes, card numbers, PINs |
tel | Telephone keypad with 0–9, * and # | Phone numbers (prefer type="tel") |
search | Standard keyboard with a Search key | Search boxes (prefer type="search") |
email | Keyboard with @ and . keys | Email addresses (prefer type="email") |
url | Keyboard with / and . keys | Web addresses (prefer type="url") |
The exact layout depends on the phone OS and the keyboard app the visitor uses.
Sources: MDN: inputmode




