Is There An Html5 Tag To Signify An Article Preview?
The description for an article element read: The article element represents a component of a page that consists of a self-contained composition in a document, page, application,
Solution 1:
There is no HTML5 tag specifically for preview excerpts.
Arguably, a summary of an article is a self-contained, potentially-reusable/syndicate-able bit of content, so you’d probably be fine using <article>
for it.
Otherwise, <div>
is always fine, although you might consider <section>
or a list depending on the context.
To mark up the actual preview text, you could use <blockquote>
, as you’re quoting the article.
Solution 2:
nav
may be come handy, but it risks becoming overkill, as it creates a section in the outline. One may also consider using figure
, especially if the excerpt also has a thumbnail.
Post a Comment for "Is There An Html5 Tag To Signify An Article Preview?"