<header> element – represents content that forms the header of a section.

Usage: there may be multiple headers on a page (typically within a section).

Permitted Content: style elements and flow content. The <header> element must not be a descendant of the <address>, <footer>, or <header> elements.

Tag omission: both start and end tag must be present.

Example code:

<h2>Yes, this is WordPress</h2>
<h3>Posted on <time datetime=”2010-07-14″ pubdate>July 14, 2010</time> by Mark DuBois</h3>

Example page (opens in a new tab/ window – view source code):

Default display properties: display: block.

Common Attributes: typical global attributes only.

Permitted Parent Elements: any element which can contain flow elements.


Leave a Reply

Your email address will not be published. Required fields are marked *