gpt4 book ai didi

css - Microformats vCard 仍然是在 HTML 5 中编码 "contact information"的最佳语义方式吗?

转载 作者:技术小花猫 更新时间:2023-10-29 12:15:02 26 4
gpt4 key购买 nike

微格式仍然是在网页中编码联系信息的最佳语义方式吗?

enter image description here

我大约 2 年前问过这个问题,得到的答案是微格式是最佳解决方案。 What is the best method to code physical address in 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">info@commerce.net</span>
</div>
</div>

最佳答案

它在 HTML5 中略有不同,但建立在相同的概念之上。参见:

关于css - Microformats vCard 仍然是在 HTML 5 中编码 "contact information"的最佳语义方式吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5691855/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com