微格式仍然是一种最好的语义方式来编码网页中的联系人信息?
近两年前我问过这个问题,得到了Microformat最好的解决方案。 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中有点不一样,但建立在同一个概念上。看到:
>关于你想做什么的例子和信息@ http://rachaelmoore.name/posts/design/html/html5-microdata-contact-info/
>规格@ http://www.w3.org/TR/microdata/