<header>

Description

The header element marks the header of a section. The header element cannot be a descendent of the address or footer element.

Example


<!DOCTYPE HTML> 
<html> 
<body> 
    <header> 
        <hgroup> 
            <h1>H1</h1> 
            <h2>H2</h2> 
        </hgroup> 
    </header> 
    <section> 
        <header> 
            <h1>H1</h1> 
        </header> 
    </section> 
</body> <!--from  w  w w  . j  av a  2  s  .  co  m-->
</html>

Click to view the demo

The code above generates the following result.

header




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference