# inputmode

*noun*

say it: **“IN-put mohd”** **/ˈɪnpʊt moʊd/**

An attribute that picks which keyboard a phone shows for a field, such as a number pad, without changing what the field accepts.

## What is **`inputmode`**?

**`inputmode`** — A global attribute that hints which input interface, such as a numeric keyboard, would be useful.

```html
<input name="postal-code" inputmode="numeric">
```

## In a sentence

- “I used **inputmode**="decimal" on the tip box so the keyboard has a dot key.”
- “The ZIP code box is a text input with **inputmode**="numeric", so phones show the number pad.”

Level: Freelancer · [More HTML terms at this level](https://www.ask-codey.com/glossary?category=html&level=4)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/inputmode
