Description
HTML element <article>
is used to define a section of content that forms an independent part of an HTML document.
An article should be independent, self-contained, and should be able to distribute on its own.
It can be anything like a blog post, a news story, an article, etc.,
The below table summarizes its usage.
Usage Details | |
Placement | It is displayed as a Block element. |
Contents | It can contain any Block elements, Inline elements, and text. |
Tags | Both opening and closing tags are required. |
Versions | HTML5 |
Syntax
<article>...</article>
Examples
<article>
<h1>Heading</h1>
<p>Paragraph text goes here.</p>
</article>
Attributes
The following table shows the list of supported and unsupported attributes for the <article>
tag.
Attribute Type | Details |
Tag-Specific Attributes | The tag <article> does not have any tag-specific attributes. |
Global Attributes | Like all other HTML tags, the tag <article> supports the HTML Global Attributes. |
Event Attributes | The tag <article> also supports the HTML Event Attributes. |
Browser Compatibility
The tag <article>
is supported in all modern browsers.
- Google Chrome 6+
- Internet Explorer or Edge 9+
- Firefox 4+
- Apple Safari 5+
- Opera 11.1+