Headers and Footers

Microsoft Word, Microsoft Excel, and Microsoft PowerPoint all treat headers and footers differently. Word and Excel do not display header and footer information in an HTML page, but PowerPoint does.

Word also provides a rich method to save footnotes and endnotes to Web pages.

Word

Word does not display header and footer information in an HTML page, but it does store the data.

Header and footer information is stored in a separate file named Header.htm. Inside the file, the header and footer information is stored as fields, using Span elements with the mso-element:field-begin, mso-element:field-separator, and mso-element:field-end attributes in conjunction with the MsoHeader and MsoPageNumber styles.

Excel

Excel does not display header and footer information in an HTML page, but it does store the data. Note, however, that if Excel data is saved to HTML with the Add Interactivity option, header and footer data is not saved.

Excel makes header and footer data persistent through the use of the mso-header-data and mso-footer-data attributes. Each attribute is a string with metadata identified by the ampersand (&). Values include:
Metadata Represents
&L Left-aligned data
&R Right-aligned data
&C Center-aligned data
&D Date
&T Time
&P Page number
&N Number of pages
&\0022fontname\,fontstyle\0022&fontsize Font name, style, and size
&B Bold
&I Italic

PowerPoint

PowerPoint stores and displays header and footer information. Additional information about printed headers and footers is stored in the Pres.xml file using the Headersfooters element.

HTML header and footer information is displayed at the bottom of each slide and is part of the slide master. The data is created as part of a shape and uses the mso-field-code attribute to define header and footer metadata such as page number and date.

Footnotes and Endnotes (Word)

Word allows the saving of footnotes and endnotes for Web pages. A link is created for each footnote and endnote and the corresponding notes are placed at the end of the Web page.

Word uses the MsoFootNoteReference and MsoEndNoteReference styles to format footnotes, the mso-footnote-id attribute to number footnotes, the mso-special-character:footnote attribute to insert footnote links, and the MsoFootNoteText and MsoEndNoteText styles to format the text of the footnote and endnote.