Forms & Controls

inputmode="tel"

Build a form with the HTML form generator

Hints at a telephone keypad, often including digits, star and hash. Use type=tel for actual telephone fields when appropriate; neither setting establishes a valid phone number. 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="tel"

Parameters & Attributes

NameTypeDescription
inputmodekeywordHints at a telephone keypad, often including digits, star and hash. Use type=tel for actual telephone fields when appropriate; neither setting establishes a valid phone number.

Working Example

Example Snippethtml
<label>  Telephone  <input type="text" inputmode="tel"></label>
HTML Reference