Open In App

HTML | <input type=”tel”>

Last Updated : 02 Jun, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

The HTML <input type=”tel”> is used to define a field that entering a user telephone Number

Syntax: 

<input type="tel"> 

Example: 

HTML




<!DOCTYPE html>
<html>
 
<head>
    <title>
        HTML Input Type Tel
    </title>
</head>
<style>
    #Geek_p {
        font-size: 30px;
        color: green;
    }
</style>
 
<body style="text-align:center;">
 
    <h1 style="color:green;">
            GeeksForGeeks
        </h1>
 
    <h2>HTML &lt;Input Type="tel"&gt;
</h2>
    <form>
        Phone No.:
        <input type="tel">
        <br>
        <br>
 
    </form>
</body>
 
</html>


Output:

  

Supported Browsers:

  • Google Chrome 3 and above
  • Edge 12 and above
  • Internet Explorer 10 and above
  • Opera 11 and above
  • Apple Safari 4 and above
  • Firefox

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads