Semantic Elements

HTML <article> element

Groups a self-contained composition that could be reused or distributed independently, such as a post or news story. An article should make sense as an independently identifiable piece of content, such as a forum post or product review. Give it a heading when useful; use section for a thematic subdivision of a larger composition. It accepts global HTML attributes; individual global features may be inapplicable or restricted.

Formal Syntax & Structure

html syntaxhtml
<article>Content</article>

Return Value

HTMLElement

Content model: Flow content; context-specific ancestor restrictions may apply.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <meta charset="utf-8">    <title>HTML example</title>  </head>  <body>    <article>      <h2>Garden update</h2>      <p>The seedlings have sprouted.</p>    </article>  </body></html>
HTML Reference