The HTML <article>
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.
Content categories | Flow content, sectioning content, palpable content. |
---|---|
Permitted content | Flow content. |
Tag omission | None, both the starting and ending tag are mandatory. |
Permitted parents | Any element that accepts flow content. Note that an <article> element must not be a descendant of an <address> element. |
Permitted ARIA roles | application , document , feed , main , presentation , region |
DOM interface | 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<address>
element, but it doesn't apply to nested<article>
elements. - The publication date and time of an
<article>
element can be described using thedatetime
attribute of a<time>
element. Note that theÂpubdate
attribute of<time>
is no longer a part of the W3C HTML 5 standard.
Examples
<article class="film_review"> Â <header> Â Â <h2>Jurassic Park</h2> Â </header> Â <section class="main_review"> Â Â <p>Dinos were great!</p> Â </section> Â <section class="user_reviews"> Â Â <article class="user_review"> Â Â Â <p>Way too scary for me.</p> Â Â Â <footer> Â Â Â Â <p> Â Â Â Â Â Posted on <time datetime="2015-05-16 19:00">May 16</time> by Lisa. Â Â Â Â </p> Â Â Â </footer> Â Â </article> Â Â <article class="user_review"> Â Â Â <p>I agree, dinos are my favorite.</p> Â Â Â <footer> Â Â Â Â <p> Â Â Â Â Â Posted on <time datetime="2015-05-17 19:00">May 17</time> by Tom. Â Â Â Â </p> Â Â Â </footer> Â Â </article> Â </section> Â <footer> Â Â <p> Â Â Â Posted on <time datetime="2015-05-15 19:00">May 15</time> by Staff. Â Â </p> Â </footer> </article>
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of '<article>' in that specification. |
Living Standard | Â |
HTML 5.1 The definition of '<article>' in that specification. |
Recommendation | Â |
HTML5 The definition of '<article>' in that specification. |
Recommendation | Â |
Browser compatibility
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 5 | (Yes) | 4.0 (2.0) | 9.0 | 11.10 | 4.1 |
Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | 2.2 | (Yes) | 4.0 (2.0) | 9.0 | 11.0 | 4.2 |
See also
Document Tags and Contributors
Tags:
Contributors to this page:
SphinxKnight,
sideshowbarker,
erikadoyle,
teoli,
Sebastianz,
MarkBeleski,
chinaowl,
JanXu,
tomturton,
Jeremie,
cfebs,
SteveFaulkner,
Aslam.Sayyed,
kscarfone,
tregagnon,
Sheppy,
medicdude,
ethertank,
cers,
brunoais,
dhodder,
nyc212,
fscholz,
hobophobe,
McGurk,
jswisher,
Ms2ger
Last updated by:
SphinxKnight,