电话格式的HTML电话链接 [英] HTML telephone link for phones format

查看:109
本文介绍了电话格式的HTML电话链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为手机制作一个html链接。

I am making an html link for a phone.

这是我的:

This is what I have:

<a href="tel:1-888-888-8888"> 1-888-888-8888</a>

手机是否可以识别此问题,还是需要将其更改为:

Will phones recognize this, or do I need to change it to:

<a href="tel:18888888888"> 1-888-888-8888</a>


推荐答案

允许在视觉分隔符uri。

Visual separators (except for spaces) are allowed in the uri.

RFC 3966The tel URI for电话号码

From RFC 3966 "The tel URI for Telephone Numbers":


5.1.1。 电话号码中的分隔符

电话号码可以包含可视分隔符。视觉分隔符
('visual-separator')仅仅是为了提高可读性,并不用于URI
比较或拨打电话......telURIs不能在视觉分隔符中使用空格...
p>

Phone numbers MAY contain visual separators. Visual separators ('visual-separator') merely aid readability and are not used for URI comparison or placing a call ... "tel" URIs MUST NOT use spaces in visual separators ...

这篇关于电话格式的HTML电话链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆