6

I have a link list, where every item is associated with a short description and some meta info such as pubdate, author etc. How should I markup this in html5?

<ul>
    <li>
        <section>    .... OR ARTICLE?
           <header>
               <h1>title</h1>
               pubdate, author, etc
           </header>
           shortdesc
        </section>
    </li>
    .... repeat
</ul>

Do you think it is a good idea to use sections/article?

Or are plain <li>s better?

Article or section?

IMPORTANT NOTE: every item does not contain full content (article), just a short description and the link to the page that actually contains the article.

I'm also interested in a SEO point-of-view!

4

1 回答 1

2

我建议article在这里使用,因为每个项目本身都是一个单独的实体,并且可以联合起来(例如在 RSS 提要中)。前段时间我写了一点:HTML5:Section or Article?.

您也不需要在这里使用列表,因为每个article都可以视为列表项。

我还建议使用该time元素来附上每个条目的发布日期。

至于我建议的 SEO,就像您发布的示例代码一样。

于 2012-04-24T07:31:13.520 回答