What's the best HTML5 tag to use for marking up blog excerpts?

后端 未结 4 1357
星月不相逢
星月不相逢 2020-12-14 06:35

It\'s a common pattern for blogs to have archive pages (eg by date or category) which list relevant blog posts, along with excerpts (a paragraph or) and a link. I can\'t qui

4条回答
  •  春和景丽
    2020-12-14 07:14

    I'd use:

     
  • is most appropriate for this:

    The blockquote element represents a section that is quoted from another source.

    Quoting yourself is not weird. The definition of the element doesn't say you have to quote somebody else. You do quote a document that lives under another URL.

    I think

    (instead of
  • ) would be acceptable, but it's not necessary (the definition of article is pretty lax, it should have been called ;)

    My litmus test for

    is whether it'd be useful in an RSS/Atom feed, and you can find feeds with just article excerpts.


    The

    element is only a part of
    , which has different purpose.

提交回复
热议问题