Footnotes and Endnotes

Word displays both footnote and endnote text at the end of the HTML document, separated from the document text and each other by a gray line. A two-way hyperlink allows you to jump between the footnote or endnote reference and its text at the end of the document.

Word uses the styles listed in the table below to store and display footnote and endnote information.

Footnote and endnote text

Word uses a Div element with the mso-element:footnote-list or mso-element:endnote-list attribute to contain all footnote or endnote text, followed by an HR element.

Word uses a Div element with the mso-element:footnote or mso-element:endnote attribute to contain the individual footnotes. The ID attribute describes the footnote or endnote order.

Horizontal line

Word always inserts an HR element in the main HTML document just before any footnote text and another before any endnote text. Word recognizes and discards this HR element and restores the original separators (default or customized) when it opens a file that was created using Word. The horizontal line automatically inherits any CSS styles attached to its element, so the footnote or endnote separator will conform to the overall style of the Web page.

Hyperlinking reference to text

Word uses an A element to link each footnote or endnote with its text. Using the following syntax, Word assigns the Name attribute to each footnote and endnote, where i is a sequential integer.

 
Reference Syntax
Footnote reference name = "_ftnrefi"
Footnote name = "_ftni"
Endnote reference name = "_ednrefi"
Endnote name = "_edni"

The purpose of the preceding underscore character "_" is to prevent confusion with A elements corresponding to user-added bookmarks, which cannot begin with the underscore character. These values are also completely distinguishable from bookmarks automatically generated in Word, which all begin with strings other than "_ftn" and "_edn".

The title attribute is included but empty in the footnote and endnote A elements. This bypasses the Internet Explorer 4.0 tooltip feature that displays the value of the name attribute if the title attribute is not present.

Positioning

Word allows footnotes to be positioned either directly beneath the text on a page or at the very bottom of a page. Similarly, endnotes can be positioned either at the end of a section or at the end of the document. Word stores the positioning information using the mso-footnote-position and mso-endnote-position style attributes for non-default settings.

Autonumbering

Word provides several options for formatting autonumber references:

When saving as HTML, Word disregards the original option settings and renumbers all autonumbered footnotes and endnotes sequentially, beginning with the first number, symbol, or character in the sequence. The only exception to this is when a footnote or endnote has a custom mark instead of an AutoNumber. In this case, the footnote or endnote is ordered between the notes that precede and follow.

The following styles in the @page definition store footnote and endnote numbering options:

For the options listed above, the default values will not produce output.

Custom marks

If the reference is a custom mark, it will be converted to HTML as formatted text and stored inside the footnote's or endnote's A element. If the custom mark is superscripted in Word, it will retain its superscript formatting in HTML.

Word separators and continuation notices

Because footnote or endnote separators and notices can be customized to have a variety of features and text formatting, Word must save them in a separate HTML file from the main document, along with the header and footer information. For more information about headers and footers, see the Headers and Footers topic.

The following style attributes in the @page definition reference the footnote or endnote separator and notice data:

The syntax for the above styles follows, where filename is the name of the file containing the footnote or endnote separator and notice data, and id is the named ID attribute for the separator or notice.

mso-footnote-separator: url filename id

For information about the style attributes that Office uses and their possible values, see the Style Attributes topic.