<header> Tag Syntax

Rules for coding HTML header elements
<body>
   ...
   ... flow content expected ...
   <header>
      ... flow content ...
   </header>
   ...
</body>
  1. Inside an element where flow content is allowed, code one or more optional header elements.
  2. 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.
  3. Include any HTML global attributes on the <header> tag as appropriate.
  4. End the header element with a matching </header> closing tag.
  5. 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.