HTML article Tag

HTML <article> Tag: The <article> tag defines the self-contained and independent content. The content within the <article> tag is independent of the other content of the site. Potential sources for the article tag element are:

  • Forum post
  • Blogs
  • Comments
  • News story

This tag is supported by both global and event attributes.

HTML <article> Tag

This tag is most often used in two contexts:

  • On a page with a single piece of content, a single <article> element can be used to contain the main content and set it off from the rest of the page.
  • On a page with multiple pieces of content (a blog index page, a search results page, a category page, a news feed), multiple <article> elements can be used to contain each individual piece of content.

Syntax: <article> –content–</article>

Browser compatibility

The <article> tag is supported by differet types of browsers.

  • Chrome-6.0
  • Firefox-4.0
  • Safari-5.0
  • Internet Explorer-9.0
  • Opera-11.1

Example:

<article>
  <h1>Freshersnow</h1>
  <p>FreshersNow.com is one of the best job sites in India for freshers.</p>
</article>

Output:

Frshersnow

freshersnow.com is one of the best job sites in India for freshers.