![]() Styling telephone numbers is like any other link.This content is 7 years old. Triggers an error dialog that does not recognize the protocol Triggers options to call, message, copy or add the number to the Contacts app Triggers dialog confirming the use of another app In other cases, the link might be ignored altogether. For example, a browser may assume another app needs to open and will trigger a dialog asking which app to use. Instead, browsers might make different decisions on what to do when that link is clicked. That’s not to say that browsers fail to recognize the tag itself. ![]() ![]() We see tel: pop up as a protocol handler for links with no official documentation and where there is no documentation, we often see differences in browser support and behavior. There are other phone-based protocols (which we’ll get to later), but we’ll be focusing on tel: given its relative prominence. You can credit this to the fact that it was a proposed standard as far back as 2000 and later adopted by iOS, making it the de facto way to go by roughly 2007. You’re probably wondering why tel: can be considered default usage in the absence of an official spec on it. The spec itself has nothing to say about it, though HMTL5 did provide support for custom protocol handlers, which allow such a protocol to be used. Tel: is not so much a feature as it is a protocol, much in the same way that http: and mailto: are protocols for the tag feature. This also works on text links: Click to Call! We have a snippet for phone links on this site that’s been hanging around since 2011: 1-56 ![]() There is enough web traffic on mobile devices and plenty of desktops apps that are capable of making calls, that it’s worth knowing more about phone links. For example, many devices will automagically recognize phone numbers and do the linking for us, but not always. Like an anchor link you tap to (probably) go to another page, these are links you tap to call a number on a phone-capable device. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |