The article tag (<article>) represents an independent component of a document, page or website which is distributable and reusable. Sources of HTML5 article element could be blog post, forum post, news story, user submitted comment etc. The article element generally contains a heading (usually within header element), the paragraph tag (<p>) and sometimes footer tag.
Important point need to be remembered:
- HTML5 article element is supported by latest versions of all web browsers. Internet Explorer 8 or earlier versions of Internet Explorer do not support article element.
There are some HTML5 article tag examples given below:
Simple example of the article tag
<article> <h1>This is the heading of the article</h1> <p>The content of the article</p> </article>
More structured example of article tag
<article> <header> <h1>This is the heading of the article</h1> <p>Written By: S Ghosh</p> </header> <p>More content ....</p> <footer> <p><small>Footer content</small></p> </footer> </article>