Featured post
semantic markup - What's the best HTML5 tag to use for marking up blog excerpts? -
it's common pattern blogs have archive pages (eg date or category) list relevant blog posts, along excerpts (a paragraph or) , link. can't quite work out of html5 elements it's best use individual posts, however.
the <article>
tag might seem fit (and if displaying whole content), i'm not sure whether it's appropriate excerpts. specification says:
the article element represents self-contained composition in document, page, application, or site , is, in principle, independently distributable or reusable, e.g. in syndication.
is excerpt self-contained , independently distributable piece of content? i'm not sure.
other options might <blockquote>
tag (but it'd weird quoting own posts), or <ol>
list (ordered publication date) containing headers , paragraphs.
any thoughts?
i'd use:
<li> <blockquote cite="original url"> </blockquote> </li>
<blockquote>
appropriate this:
the blockquote element represents section quoted source.
quoting not weird. definition of element doesn't have quote else. quote document lives under url.
i think <article>
(instead of <li>
) acceptable, it's not necessary (the definition of article pretty lax, it should have been called <infolump>
;)
my litmus test <article>
whether it'd useful in rss/atom feed, , can find feeds article excerpts.
the <summary>
element part of <details>
, has different purpose.
<aside>
describes role of content within page. when excerpts main part of archive page, it's not tangential content. otoh if "see also" section on post page, <aside>
perfect.
- Get link
- X
- Other Apps
Comments
Post a Comment