How to use "tel:" value of <a> tag for calling to a number which we enter? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to use "tel:" value of <a> tag for calling to a number which we enter?

I've seen this "tel:" value while I was completing a challenge in HTML, but I don't know how to use it, could you guys help me out?

10th Feb 2020, 4:33 AM
Nanda Kumar Munaganti
Nanda Kumar Munaganti - avatar
4 Answers
+ 3
Hi! If you click on this tag maybe run window with Skype for example.
10th Feb 2020, 4:47 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 3
Here is a reference https://webdev-il.blogspot.com/2011/03/how-to-make-html-link-to-call-phone.html?m=1 here are some examples <a href="tel:5551234567">Call (555)123-4567</a> One click should open the phone dialler and input the number to be called. ... <a class="mobilesOnly" href="tel:5551234567">Call (555)123-4567</a> CSS for non-handheld devices. .mobilesOnly {visibility:hidden;} ... <a href="callto:5551234567">Call (555)123-4567</a>
10th Feb 2020, 4:50 AM
BroFar
BroFar - avatar
+ 2
Is the country code not compulsory? What effectively validates the number?
10th Feb 2020, 5:00 AM
Sonic
Sonic - avatar
+ 1
Sonic you can expand to the full country...
10th Feb 2020, 5:02 AM
BroFar
BroFar - avatar