<header> Tag Syntax
Rules for coding HTML header
elements
<body> ... ... flow content expected ... <header> ... flow content ... </header> ... </body>
- Inside an element where flow content is allowed, code one or more optional header elements.
- Begin each header element with a starting <header> tag. The element name uses lower case letters and should be in the HTML namespace, which it will pick up automatically from the
xmlns
attribute on the <html> tag. - Include any HTML global attributes on the <header> tag as appropriate.
- End the header element with a matching
</header>
closing tag. - Inside the header element, code the appropriate flow content.
<header> Content Model
Content of the <header> Tag
The content of the header element can include HTML comments, text content and any tags that can be used in flow content except for other <header> tags or <footer> tags.