HTML5 <article>
Tag
Topic: HTML5 Tags ReferencePrev|Next
Description
The <article>
element represents a section of content that forms an independent part of a document, such as a blog post, article, or other self-contained unit of information, that may be linked to or included in some other content body.
The following table summarizes the usages context and the version history of this tag.
Placement: | Block |
---|---|
Content: | Block, inline, and text |
Start/End Tag: | Start tag: required, End tag: required |
Version: | New in HTML5 |
Syntax
The basic syntax of the <article>
tag is given with:
The example below shows the <article>
tag in action.
Example
Try this code »<article>
<h1>Introduction to HTML</h1>
<p>HTML is a markup language that is used for creating web pages.</p>
</article>
Tag-Specific Attributes
The <article>
tag doesn't have any specific attribute.
Global Attributes
Like all other HTML tags, the <article>
tag supports the global attributes in HTML5.
Event Attributes
The <article>
tag also supports the event attributes in HTML5.
Browser Compatibility
The <article>
tag is supported in all major modern browsers.
Basic Support—
|
Further Reading
See tutorial on: HTML Text Formatting.
Related tags: <address>
.