Skip to content

QuizNot attempted

div vs section vs article

A blog index lists post previews, each of which could be syndicated on its own. Which markup fits best?
1–4 to choose, Enter to submit
Show answer & explanation

Correct answer:

  • <section> with a heading, containing one <article> per post
  • Each preview is self-contained and could be syndicated on its own, which is exactly <article>
  • the list as a whole is a thematic group with a heading, which is <section>.
  • Not a div with class=article: a class carries no semantics for assistive tech.
  • Not one article around all posts: the individual posts are the self-contained units.
  • Not aside: that is for tangential content (sidebars, callouts).
  • A named <section> also becomes a region landmark.