Mark article with article element

Description

The article element represents a self-contained piece of content in an HTML document.

Example

The following code shows the article element in use.


<!DOCTYPE HTML>
<html>
</head><!--   w ww  .j  a v a  2s . com-->
<body>
  <article>
    <header>
      <hgroup>
        <h1 id="fruitsilike">H1Like</h1>
        <h2>H2</h2>
      </hgroup>
    </header>
    This is a test.
    <section>
      <h1 id="morefruit">XML</h1>
      This is a test.
      <section>
        <h1>HTML</h1>
        This is a test.
      </section>
    </section>
    <footer>
      <nav>
        Nav
      </nav>
    </footer>
  </article>
</body>
</html>

Click to view the demo





















Home »
  HTML CSS »
    HTML »




HTML Introduction
HTML Document
HTML Section
HTML Group Content
HTML Text Marker
HTML Table
HTML Form
HTML Embed