Form
Telephone number input
Published on
Description
The telephone input provides a text field optimized for phone numbers. Mobile devices display a numeric dial pad.
Example
Accessibility
- Use explicit
<label for="id">association. - Use
autocomplete="tel"to enable browser autofill. - Inherit typography for WCAG 1.4.12 compliance.
- Provide hint text describing the expected format (e.g. "+1 555-123-4567") via
aria-describedby.
References
- Under-Engineered Text Boxen (opens in new tab) — Adrian Roselli
- My Priority of Methods for Labeling a Control (opens in new tab) — Adrian Roselli
Related
- Text input — for general text
Variables
None for input