HTML5: Using the <header> element for site header

This entry is part 6 of 34 in the series HTML5

The <header> element is usually the first thing on the body of a web page.

It can contain logo, website name or site navigation.

<!DOCTYPE html>
<html>
<head lang='en'>
    <meta charset='UTF-8'>
    <title></title>
</head>
<body>

<header>
    <hgroup>
        <h1>Learning HTML5 </h1>

        <h3>It's easy to learn HTML5 with Codecrawl!</h3>
    </hgroup>
</header>

</body>
</html>

The hgroup here is used to group the heading and the sub heading.

Series Navigation<< HTML5: Syntax writing style
HTML5: Putting site navigation <nav> links at <header> >>