Html 像<a href="fax:number">number</a>这样的东西存在吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9443520/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Does anything like <a href="fax:number">number</a> exist?
提问by Imagine
As we use
当我们使用
<a href="tel:number">number</a> or <a href="mailto:mailid>mailid</a>
for telephone number & email, does anything like <a href="fax:number">number</a>
for fax exist?
对于电话号码和电子邮件,是否<a href="fax:number">number</a>
存在诸如传真之类的东西?
回答by Gordon
Yes, the tel, fax and modem URL Schemes are discussed in https://www.ietf.org/rfc/rfc2806
是的,电话、传真和调制解调器 URL 方案在https://www.ietf.org/rfc/rfc2806中讨论
2.3 "fax" URL scheme
2.3 “传真” URL 方案
The URL syntax is formally described as follows (the definition reuses nonterminals from the above definition). For the basis of this syntax, see [RFC2303] and [RFC2304].
URL 语法的正式描述如下(定义重用了上述定义中的非终结符)。有关此语法的基础,请参阅 [RFC2303] 和 [RFC2304]。
fax-url = fax-scheme ":" fax-subscriber
fax-scheme = "fax"
fax-subscriber = fax-global-phone / fax-local-phone
fax-global-phone = "+" base-phone-number [isdn-subaddress]
[t33-subaddress] [post-dial]
*(area-specifier / service-provider /
future-extension)
fax-local-phone = 1*(phonedigit / dtmf-digit /
pause-character) [isdn-subaddress]
[t33-subaddress] [post-dial]
area-specifier
*(area-specifier / service-provider /
future-extension)
t33-subaddress = ";tsub=" 1*phonedigit
The fax: URL is very similar to the tel: URL. The main difference is that in addition to ISDN subaddresses, telefaxes also have an another type of subaddress, see section 2.5.8.
fax: URL 与 tel: URL 非常相似。主要区别在于除了 ISDN 子地址之外,传真还具有另一种类型的子地址,请参阅第 2.5.8 节。
Example:
例子:
<a href="fax:+358.555.1234567">+358.555.1234567</a>
However, as per the comments below, RFC 2806 was obsoleted by RFC 3966 and you should just use the tel URI scheme:
但是,根据下面的评论,RFC 2806 已被 RFC 3966 废弃,您应该只使用 tel URI 方案:
The "tel" URI does not specify the call type, such as voice, fax, or data call, and does not provide the connection parameters for a data call. The type and parameters are assumed to be negotiated either in-band by the telephone device or through a signaling protocol such as SIP. This document obsoletes RFC 2806.
“tel”URI 不指定呼叫类型,例如语音、传真或数据呼叫,并且不提供数据呼叫的连接参数。假定类型和参数由电话设备在带内协商或通过信令协议(例如 SIP)协商。本文档废弃了 RFC 2806。
RFC 3966 was updated by RFC 5341to formalize URI parameters and require them to be registered with IANA. I am including these here for the sake of completeness. They do not contain any additional information on fax devices.
RFC 3966 由 RFC 5341 更新,以规范 URI 参数并要求它们向IANA 注册。为了完整起见,我将这些包括在这里。它们不包含有关传真设备的任何附加信息。