【发布时间】:2019-08-22 17:05:33
【问题描述】:
我正在向我的网页添加结构化数据,但我找不到标准格式来填充“电话”属性的值。
我在不同的范围内使用了电话属性:Organization、ContactPoint 和Person。
从 schema.org 以微数据格式提供的示例:
<div itemscope itemtype="http://schema.org/LocalBusiness">
<h1><span itemprop="name">Beachwalk Beachwear & Giftware</span></h1>
Phone: <span itemprop="telephone">850-648-4200</span>
</div>
schema.org 提供的 JSON-LD 格式的示例:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"address": {
"@type": "PostalAddress",
"addressLocality": "Paris, France",
"postalCode": "F-75002",
"streetAddress": "38 avenue de l'Opera"
},
"email": "secretariat(at)google.org",
"faxNumber": "( 33 1) 42 68 53 01",
"telephone": "( 33 1) 42 68 53 00"
}
</script>
Google 提供的示例(企业联系人)
https://developers.google.com/search/docs/data-types/corporate-contact
电话号码的国际化版本,以“+”符号和国家代码(在美国和加拿大为 +1)开头。
如果我的国际前缀是 +41 而我的号码是 987654321,那么哪种格式最好?
- 0041-98-7654321
- (+41) 98 76 54 321
- +41987654321 = 谷歌风格
- 还是什么?
有标准吗?
【问题讨论】: