tel
tel
This page has been flagged with the following issues:
High-level issues:
Summary
An input field intended for entering a telephone number; does not enforce any syntax.
Overview Table
| DOM Interface | HTMLInputElement |
|---|
Examples
This 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 information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.10.7.1.3
Members
The input type=tel object has these types of members:
- [#properties Properties]
Properties
The input type=tel object has these properties. {
Compatibility
Desktop
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic Support | 5.0 | 4.0 | 10 | 11 |
? |
Mobile
| Feature | Android | BlackBerry | Chrome for mobile | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Opera Mini | Safari Mobile |
|---|---|---|---|---|---|---|---|---|
| Basic Support | 2.3 | ? | ? | 4.0 | 10 | 10.62 | ? | 3.1 |
See also
Related pages (MSDN)
Referenceinputpatternplaceholder
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]
This tool helps to make and review comments inline.
How to Use
insert instructions, with images, here