1. Computing

Discuss in my forum

<input type="tel">

By

INPUT Telephone Description:

The telephone INPUT tag allows you to request telephone numbers in your HTML forms.

DTD: HTML5: <!doctype html>

INPUT Telephone Web Browser Support:

At this time, there are no browsers that really support the input type telephone tag. However, they display a text box. You can still use this input type to collect phone numbers and just use a script to validate the phone number.

HTML Versions

INPUT Telephone Attributes:

Global attributes, event attributes, and the input tag attributes. Plus: </p>

  • autocomplete
  • list
  • maxlength
  • pattern
  • placeholder
  • readonly
  • required
  • size
  • selectedOption
  • select()
  • selectionStart
  • selectionEnd
  • setSelectionRange()

INPUT Telephone Usage:

Standard telephone input tag

<form>
<input type="tel">
</form>

See an example of a standard telephone input tag.

INPUT Telephone Special Notes:

In one sense all browsers support the input type telephone tag because they all display it as a text field. The HTML 5 specification does not require that browsers enforce any specific telephone number syntax or display the field in any particular way. Plus, mobile browsers like the iPhone and iPad will display the number keypad to enter this form data rather than the alphabet keyboard.

More INPUT Telephone Information:

  1. About.com
  2. Computing
  3. Web Design / HTML
  4. HTML and XHTML
  5. HTML 5
  6. HTML 5 Tags
  7. The INPUT Telephone Tag - INPUT Telephone - HTML Tag for Telephone Numbers

©2014 About.com. All rights reserved.