Path: blob/main/files/en-us/web/html/element/article/index.md
6520 views
------{{HTMLSidebar}}
The <article> HTML element represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable (e.g., in syndication). Examples include: a forum post, a magazine or newspaper article, or a blog entry, a product card, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.
{{EmbedInteractiveExample("pages/tabbed/article.html", "tabbed-standard")}}
A given document can have multiple articles in it; for example, on a blog that shows the text of each article one after another as the reader scrolls, each post would be contained in an <article> element, possibly with one or more <section>s within.
| Content categories | Flow content, sectioning content, palpable content |
|---|---|
| Permitted content | Flow content. |
| Tag omission | {{no_tag_omission}} |
| Permitted parents |
Any element that accepts
flow content. Note that an <article> element must not be a
descendant of an {{HTMLElement("address")}} element.
|
| Implicit ARIA role |
article
|
| Permitted ARIA roles |
application, document,
feed, main,
none, presentation,
region
|
| DOM interface | {{domxref("HTMLElement")}} |
Attributes
This element only includes the global attributes.
Usage notes
Each
<article>should be identified, typically by including a heading (<h1>-<h6>element) as a child of the<article>element.When an
<article>element is nested, the inner element represents an article related to the outer element. For example, the comments of a blog post can be<article>elements nested in the<article>representing the blog post.Author information of an
<article>element can be provided through the {{HTMLElement("address")}} element, but it doesn't apply to nested<article>elements.The publication date and time of an
<article>element can be described using the {{htmlattrxref("datetime", "time")}} attribute of a {{HTMLElement("time")}} element.
Examples
Result
{{EmbedLiveSample('Examples')}}
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
Other section-related elements: {{HTMLElement("body")}}, {{HTMLElement("nav")}}, {{HTMLElement("section")}}, {{HTMLElement("aside")}}, {{HTMLElement("Heading_Elements", "h1")}}, {{HTMLElement("Heading_Elements", "h2")}}, {{HTMLElement("Heading_Elements", "h3")}}, {{HTMLElement("Heading_Elements", "h4")}}, {{HTMLElement("Heading_Elements", "h5")}}, {{HTMLElement("Heading_Elements", "h6")}}, {{HTMLElement("hgroup")}}, {{HTMLElement("header")}}, {{HTMLElement("footer")}}, {{HTMLElement("address")}}