2011-06-21 49 views

回答

9

我通常把這種在頁腳信息的。

<article role="article" class="post" itemscope itemtype="http://microformats.org/profile/hatom"> 
    <h1 itemprop="entry-title">Title</h1> 
    <section itemprop="entry-content"> 
     ... 
    </section> 
    <footer role="contentinfo"> 
     <div itemscope itemtype="http://microformats.org/profile/hcard"> 
      Posted by <span itemprop="fn">John Doe</span> 
     </div> 
     on <time itemprop="published" pubdate datetime="2011-12-12">Dec 12th</time> 
     in <a rel="tag" href="#">Design</a> 
     <a href="#">Leave a Comment</a> 
    </footer> 
</article> 

更多信息,請參見:

http://microformats.org/wiki/microdata

http://microformats.org/wiki/hatom

http://www.w3.org/TR/wai-aria/

+0

尼斯的答案,但它不應該是'http://microformats.org/profile/ hcard'不是'http:// microformats.org/profile/vcard'? – Alohci

+0

是的,好的。 –

相關問題