如何标记电话号码? [英] How to mark-up phone numbers?
问题描述
我想在HTML文档中将电话号码标记为可调用链接。我已阅读微格式方法,并且我知道, tel:
方案将是标准的,但实际上并没有实现。
据我所知,Skype定义 skype:
和 callto:
,后者获得了一定的知名度。我假设其他公司有其他方案或跳过 callto:
列车。
什么是最好的方法来标记一个电话号码,以便尽可能多的人使用VoIP软件只需点击一个链接即可接听电话?
奖励问题:是任何人都知道紧急数字的并发症,例如美国的911或德国的110?
干杯,
更新::Microsoft NetMeeting在WinXP下采用 callto:
方案。 这个问题建议,Microsoft Office Communicator将处理 tel:
方案,但不是 callto:
ones。 Great,Redmond!
更新2:现在两年半了。这似乎归结为你想要对号码做什么。在移动环境中, tel:
是最好的选择。如果您认为自己的用户是更多的Skype用户( callto:
),或者更有可能拥有Google Voice之类的功能( tel) :
)已安装。我个人的观点是,如果有疑问,请使用 tel:
(符合@Sidnicious的答案)。
更新3: User @ rybo111指出,Chrome中的Skype同时跳入 tel:
行列。我无法验证这一点,因为手头没有机器,但如果这是真的,这意味着我们终于在这里赢了一场:
tel:
tel :
方案于九十年代后期使用 ,并于2000年初记录在 RFC 2806 中(它已被更彻底2004年 RFC 3966 )和继续改进。在iPhone上支持 tel:
并不是一个任意的决定。
$ b
callto:
,虽然Skype支持,但不是标准,除非专门针对Skype用户,否则应避免使用。
我吗?我刚刚开始在你的页面上包含正确格式的 tel:
URI(不用嗅探用户代理),并等待世界其他电话赶上:)。
示例:
< a href =tel:+18475555555> 1-847-555-5555< / a>
I want to mark up a phone number as callable link in an HTML document. I have read the microformats approach, and I know, that the tel:
scheme would be standard, but is quite literally nowhere implemented.
Skype defines, as far as I know, skype:
and callto:
, the latter having gained some popularity. I assume, that other companies have either other schemes or jump on the callto:
train.
What would be a best practice to mark-up a phone number, so that as many people as possible with VoIP software can just click on a link to get a call?
Bonus question: Does anyone know about complications with emergency numbers such as 911 in US or 110 in Germany?
Cheers,
Update: Microsoft NetMeeting takes callto:
schemes under WinXP. This question suggests, that Microsoft Office Communicator will handle tel:
schemes but not callto:
ones. Great, Redmond!
Update 2: Two and a half years later now. It seems to boil down to what you want to do with the number. In mobile context, tel:
is the way to go. Targeting desktops it's up to you, if you think your users are more Skype people (callto:
) or will more likely have something like Google Voice (tel:
) installed. My personal opinion is, when in doubt use tel:
(in line with @Sidnicious' answer).
Update 3: User @rybo111 noted, that Skype in Chrome has meanwhile jumped on the tel:
bandwagon. I cannot verify this, because no machine with both at hand, but if it's true, it means we have finally a winner here:
tel:
The tel:
scheme was used in the late 1990s and documented in early 2000 with RFC 2806 (which was obsoleted by the more-thorough RFC 3966 in 2004) and continues to be improved. Supporting tel:
on the iPhone was not an arbitrary decision.
callto:
, while supported by Skype, is not a standard and should be avoided unless specifically targeting Skype users.
Me? I'd just start including properly-formed tel:
URIs on your pages (without sniffing the user agent) and wait for the rest of the world's phones to catch up :) .
Example:
<a href="tel:+18475555555">1-847-555-5555</a>
这篇关于如何标记电话号码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!