Key facts
How does a tel input behave?
A tel input changes the mobile keyboard and nothing else: the browser accepts any text and sends it exactly as typed, so the format check is up to pattern and your server.
| Fact | Detail |
|---|---|
| Mobile keyboard | A phone keypad with 0–9, * and #. |
| Built-in validation | None. Any text passes, and there is no typeMismatch for tel. |
| Submitted value | The text exactly as typed, spaces and dashes included. |
pattern | The whole value must match the pattern. Add a title that explains the format you want. |
autocomplete="tel" | Fills the full number with the country code. tel-national and tel-country-code fill the parts. See the autocomplete attribute. |
maxlength / minlength | Both work, and count characters, not digits. |
Sources: WHATWG HTML Standard: Telephone state (type=tel) · MDN: <input type="tel">




