The <article>
element marks a self-contained content.
An article could be a blog entry.
<article> |
Yes | 9.0 | Yes | Yes | Yes |
The <article> tag is new in HTML5.
The <article> tag supports the Global Attributes in HTML.
The <article> tag supports the Event Attributes in HTML.
article { display: block; }
A demo showing how to use article tag.
<!DOCTYPE HTML>
<html>
<body>
<article>
<header>
<hgroup>
<h1>H1</h1>
<h2>H2</h2>
</hgroup>
</header>
<p>text text text text text text text text text </p>
<section>
<h1>H1</h1>
<p>text </p>
<section>
<h1>H1</h1>
<p>text </p>
</section>
</section>
<footer>
<nav>
<p>text</p>
<a href="">a link</a>
</nav>
</footer>
</article>
</body> <!-- www. ja v a 2s . com-->
</html>