Sometimes, we want to create a hyperlink to call a phone number on mobile devices with HTML.
In this article, we’ll look at how to create a hyperlink to call a phone number on mobile devices with HTML.
How to create a hyperlink to call a phone number on mobile devices with HTML?
To create a hyperlink to call a phone number on mobile devices with HTML, we use the tel:
prefix.
For instance, we write
<a href="tel:+1-555-555-1212">+1-555-555-1212</a>
to add a link that opens the phone dialpad to dial 1-555-555-1212 when it’s clicked.
Conclusion
To create a hyperlink to call a phone number on mobile devices with HTML, we use the tel:
prefix.