join: new@juude



get alerts for new articles






CLOSE WINDOW

join: new@juude



get alerts for new articles






CLOSE WINDOW
html5

Structural, Layout and More


<header></header> (w3c)

The header is used to define the introductory information of a page, section or article. The header cannot be placed in a footer.

ARIA role attribute value: banner
role="banner"
This attribute should only be used once per page when the header element is not a descendant of an article or section.

 The header element represents introductory content for its nearest ancestor sectioning content or sectioning root element. A header typically contains a group of introductory or navigational aids.
HTML 5.1 Nightly


Attributes: All Global

DON'T USE FOR STYLING
A header should not be used to wrap information for styling only, in that case you need to use a div.

MAKE SURE IT DISPLAYS IN AND PRINTS CORRECTLY FROM ALL VERSIONS OF EACH BROWSER
In your CSS you need to make sure that this element is a block:
header{
display: block;
}

Include the javaScript (info on this page) so that it works in all IE versions 9 down which will also allow it to print correctly from older versions of IE