An input field intended for entering a telephone number; does not enforce any syntax.
Overview TableThis example uses the input type=tel element to create an empty telephone control. The telephone control does not validate or enforce a specific format, so the pattern attribute is used to require the correct format. The title attribute gives users a guide when they hover over the field.
<input type="tel" name="teleNumber" pattern="\(\d\d\d\) ?\d\d\d-\d\d\d\d" title="(###) ###-####"
Notes Remarks
Note For code samples, see Form controls part 1 and Form controls part 2: validation on the Windows Internet Explorer sample site.
Standards informationThe input type=tel object has these types of members:
The input type=tel object has these properties. {
See also Related pagesReference
input
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4