+ 1

Input type??

To ask phone number form users, we should use input type tel or input type number??

24th Dec 2020, 8:52 AM
Zwe Thu
Zwe Thu - avatar
2 Answers
+ 6
You will use 'input type = 'tel' **Backing up Nila, here is a descriptive example; <input type = "number" /> Will request user to enter number(or numbers) e.g 1,2,3,4,45,32 and, <input type = "tel" /> Will request for user's phone number e.g 08123456780, +9198765431 So, for the type of input you will add in your code that will requires user's phone number you will have to use the 'input type = 'tel'
21st Jan 2021, 12:58 PM
Coolbuoy
Coolbuoy - avatar
+ 3
input type tell is used for adding phone number but input type number is used for adding number
24th Dec 2020, 9:14 AM
Nilla