<hdr> (Header)
This element specifies the content for a single header for use within one or more sections of a WordprocessingML document.
Within the <hdr> element, the content of the element is similar to the content of the <body> (§2.2.2) element, and contains what is referred to as block-level markup - markup which can exist as a sibling element to paragraphs in a WordprocessingML document.

This document defines one header with the text Header. The header's contents is stored in a unique Header part. The resulting header is represented by the following WordprocessingML:
<w:hdr>
<w:p>
<w:r>
<w:t>Header</w:t>
</w:r>
</w:p>
</w:hdr>
Since headers are containers of block level contents, all block level elements can be used within them. In this particular example, the content is a single paragraph. ]

This document defines three headers stored in three different header parts. The resulting headers are represented by the following WordprocessingML:
First page header part:
<w:hdr>
<w:p>
<w:r>
<w:t>First</w:t>
</w:r>
</w:p>
</w:hdr>
Even page header part:
<w:hdr>
<w:p>
<w:r>
<w:t>Even</w:t>
</w:r>
</w:p>
</w:hdr>
Odd page header part:
<w:hdr>
<w:p>
<w:r>
<w:t>Odd</w:t>
</w:r>
</w:p>
</w:hdr>
Parent Elements |
|---|
Root element of WordprocessingML Header part |
Child Elements |
Subclause |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_HdrFtr">
<group ref="EG_BlockLevelElts" minOccurs="1" maxOccurs="unbounded"/>
</complexType>