- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to use telephone input type in HTML?
The telephone input type is used in HTML using the <input type="tel">. Using this, allow the users to add telephone number.
Note − The input type tel is only supported in Safari.
Example
You can try to run the following code to learn how to use input type tel to allow user input in the form of a telephone number −
<!DOCTYPE html> <html> <head> <title>HTML input search</title> </head> <body> <form action = "" method = "get"> Details:<br><br> Student Name<br><input type = "name" name = "sname"><br> Student Telephone<br> <input type = "tel" name = "telephone"><br> <input type = "submit" value = "Submit"> </form> </body> </html>
Advertisements