Note/Info The article tag is a new tag added in HTML5.
HTML5 <article> tag
The <article> tag creates a separate block or section.
You can use this tag to create an article in the HTML5 document like Newspaper article, Blog, Forum post etc.
The <article> element does not depend on other content of the pages.
Syntax:
<article>Text….</article>
Example
<article> <h2>What is Motivation?</h2> <p>Internal and external factors that stimulate desire and energy in people to be continually interested and committed to a job, role or subject, or to make an effort to attain a goal.</p> </article>
Default CSS Value
display: block;
How Browser will display
BLOCK Level.
Difference between HTML4.01, XHTML and HTML5
HTML4 | XHTML | HTML5 |
---|---|---|
NA | NA | New tag in HTML5 |
Attributes used with <article> tag
No specific attribute
Global Attributes
The <article> tag supports Global Attributes.
Event Attributes
The <article> tag supports Event Attributes in HTML.
Supporting Browsers
Related Tags
<address>, <aside>, <section>and <div> tags