微格式 vCard 仍然是 HTML 5 中编码“联系信息”的最佳语义方式吗?
微格式仍然是在网页中编码联系信息的最佳语义方式吗?
我大约 2 年前问过这个问题,并得到了答案,其中微格式是最佳解决方案。 编码物理地址的最佳方法是什么html?
现在在 HTML 5 中,这仍然是最好的方法吗?
<div class="vcard">
<span class="fn">Gregory Peck</span>
<a class="org url" href="http://www.commerce.net/">CommerceNet</a>
<div class="adr">
<span class="type">Work</span>:
<div class="street-address">169 University Avenue</div>
<span class="locality">Palo Alto</span>,
<abbr class="region" title="California">CA</abbr>
<span class="postal-code">94301</span>
<div class="country-name">USA</div>
</div>
<div class="tel">
<span class="type">Work</span> +1-650-289-4040
</div>
<div class="tel">
<span class="type">Fax</span> +1-650-289-4041
</div>
<div>Email:
<span class="email">[email protected]</span>
</div>
</div>
Is Microformats still a best semantic way to code contact information in a web page?
I asked this question almost 2 years ago and got the answer where Microformat was the best solution. What is the best method to code physical address in html?
Now today in HTML 5, Is that still the best way?
<div class="vcard">
<span class="fn">Gregory Peck</span>
<a class="org url" href="http://www.commerce.net/">CommerceNet</a>
<div class="adr">
<span class="type">Work</span>:
<div class="street-address">169 University Avenue</div>
<span class="locality">Palo Alto</span>,
<abbr class="region" title="California">CA</abbr>
<span class="postal-code">94301</span>
<div class="country-name">USA</div>
</div>
<div class="tel">
<span class="type">Work</span> +1-650-289-4040
</div>
<div class="tel">
<span class="type">Fax</span> +1-650-289-4041
</div>
<div>Email:
<span class="email">[email protected]</span>
</div>
</div>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它在 HTML5 中略有不同,但建立在相同的概念之上。请参阅:
It's a little bit different in HTML5, but builds on the same concept. See:
这是我正在使用的“转换”表格,如果有帮助的话。 (前几个网站我忘记了 html5 文档标签,花了一个小时试图找出它不起作用的原因,如果文档类型错误,则无法识别文档元素,呃!)
(引用)。
Here is the "conversion" form that I am using, if it helps. (The first couple of sites I forgot the html5 doc tag, and spent an hour trying to find out why it wasn't working, the document elements aren't recognized if the doc type is wrong, duh!)
(Citation).