Home >Web >HTML reference – elements and attributes >article – self-contained content

article – self-contained content

<article>…</article>

A self-contained, complete piece of content that would make sense even taken out of the page – in an RSS reader, in a listing or on another website: an article, a forum post, a comment, a review, a product card. It usually has its own heading.

  • Default display: display: block
  • End tag: required
  • Content: flow content
  • Where it can be used: anywhere flow content is allowed (not inside address)
  • DOM interface: HTMLElement

Attributes

Only global attributes.

Examples

An article with comments – the comments are nested articles because each of them is a separate post:

<article>
  <h2>How to bake sourdough bread</h2>
  <p>Prepare the starter a day in advance…</p>
  <section>
    <h3>Comments</h3>
    <article>
      <p><strong>Peter</strong>: I tried it and it worked.</p>
    </article>
  </section>
</article>

A list of articles – each card is an article:

<h2>Latest recipes</h2>
<article>
  <h3><a href="/recipes/bread/">Sourdough bread</a></h3>
  <p>Bread from your own starter in two days.</p>
</article>
<article>
  <h3><a href="/recipes/rolls/">Homemade rolls</a></h3>
  <p>Breakfast rolls from a simple dough.</p>
</article>

Accessibility

article has the article role. Screen readers announce it and can skip between the articles in a listing.

Things to watch out for

  • The difference from section: article is a self-contained whole, section is part of a larger whole (a chapter of an article). If a section makes sense on its own, it is an article.
  • A wrapper for presentation (a grid, a border) is a div, not an article.
  • Browsers used to shrink h1 inside article, aside, nav and section to the size of h2. Since Chrome 140, Firefox 140 and Safari 26.2 they no longer do (as of October 2026) – so set the size of headings in CSS yourself.

Browser support

Baseline – widely available: works in all major browsers and has for a long time (since 2015 at the latest). Since version: Chrome 5, Firefox 4, Safari 5. As of October 2026 (MDN browser-compat-data).

Related:
section – section
aside – complementary content
main – main content
header – header
footer – footer
h1–h6 – headings
div – generic block