Codectionary / Developer documentation / HTML

<article>

The <article> element represents a self-contained piece of content that could theoretically be distributed or reused independently — like a blog post, news story, forum post, or product card. The key test is whether the content would still make sense if syndicated on its own, separate from the rest of the page. Articles can be nested (e.g., a blog post article containing comment articles).

Syntax

<article>
  <h2>Article Title</h2>
  <p>Article content...</p>
</article>

Examples

Blog Post

A self-contained blog post as an article.

<article>
  <h2>Getting Started with TypeScript</h2>
  <p>Published March 3, 2026</p>
  <p>TypeScript adds static typing to JavaScript...</p>
</article>

Multiple Articles in a Feed

A list of independent articles, such as in a news feed.

<section>
  <article>
    <h3>Breaking: New JS Framework Released</h3>
    <p>Summary of the news...</p>
  </article>
  <article>
    <h3>CSS Grid Level 3 Draft Published</h3>
    <p>Summary of the news...</p>
  </article>
</section>

Nested Articles (Comments)

A blog post article containing individual comment articles.

<article>
  <h2>Why Semantic HTML Matters</h2>
  <p>Main post content...</p>
  <section>
    <h3>Comments</h3>
    <article>
      <p>Great explanation, thanks!</p>
    </article>
  </section>
</article>

Best practices

  • Use <article> only for content that would make sense on its own if extracted from the page
  • Give each <article> its own heading so it is meaningful out of context
  • It is fine to nest <article> elements, such as comments within a blog post
  • If content only makes sense in the context of the surrounding page, use <section> or <div> instead

Browser compatibility

Support applies to the named feature, not every attribute or behaviour in this article. Versions refer to browsers, not operating systems.

<article>

Desktop

Chrome
Supported
From 5
Firefox
Supported
From 4
Safari
Supported
From 5
Edge
Supported
From 12
Opera
Supported
From 11.1

Mobile

Safari on iOS
Supported
From 4.2
Chrome for Android
Supported
From 18
Firefox for Android
Supported
From 4
Samsung Internet
Supported
From 1.0

MDN BCD record for this feature · MDN reference

Support history and limitations

Chrome

  • From 5

Firefox

  • From 4

Safari

  • From 5

Edge

  • From 12

Opera

  • From 11.1

Safari on iOS

  • From 4.2

Chrome for Android

  • From 18

Firefox for Android

  • From 4

Samsung Internet

  • From 1.0

MDN BCD 8.1.5 · Dataset built 2026-10-08 · Mapping reviewed 2026-10-21. These dates are not individual browser-test or claim-verification dates. Unknown means the data does not establish support.

HTML Living Standard

Specifications & further reading