HTML5 <article> Tag

Topic: HTML5 Tags Reference« Prev|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:

HTML / XHTML: <article> ... </article>

The example below shows the <article> tag in action.

  • <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.

Browsers Icon

Basic Support—

  • Firefox 4+
  • Google Chrome 6+
  • Internet Explorer 9+
  • Apple Safari 5+
  • Opera 11.1+

Further Reading

See tutorial on: HTML Text Formatting.

Related tags: <address>.

 
Close

Your Feedback:

 

We would love to hear from you! Please say something.