Reporter > Presenting results > Changing headers and footers > HTML formatting for headers and footers
 
HTML formatting for headers and footers
You can use the following HTML tags to insert hyperlinks or define formatting in texts to display in headers and footers (annotations). When possible, it is generally preferable to control the formatting of the headers and footers using the export style sheets rather than HTML tags embedded in the header and footer specifications. However, the HTML tags are useful when you want to emphasize individual words or phrases.
Tag
Attributes
Description
<b>...</b>
Stong emphasis (bold).
<i>...</i>
Emphasis (italics).
<u>...</u>
Underlined.
<font>...</font>
color
size
face
Font.
Use the color attribute to specify a color, using either the hexadecimal value or the color name; the size attribute to specify a size from 1 (smallest) to 7 (largest); and the face attribute to specify a comma-separated list of font names in order of preference.
<a>...</a>
href
Anchor.
Use the href attribute to insert the URL of a web page.
<img/>
src
alt
Image link.
Specify the name and location of the graphic in the src attribute. You can also specify alternate text to appear when you move the mouse over the graphic using the alt attribute.
This tag does not require a separate closing tag.
<br/>
Inserts a line break.
This tag does not require a separate closing tag.
The HTML tags used must be well-formed HTML, otherwise they may not be recognized as HTML and will appear as plain text. For example:
Close all tags. This is particularly easy to forget when using the <br> and <img> tags, which do not have separate closing tags. Specify the line break tag as <br/> and not <br>, or it may appear in the exports as "<br>". Similarly, you need to close the <img> tag, for example:
<img src='C:\CorporateImages\logo.png' alt='UNICOM Systems, Inc.'/>
Use the same case for opening and closing tags.
Enclose attributes in double or single quotation marks (for example, <font size='7'>). When using double quotation marks in a script, escape each one with a second double quotation mark (for example, <font size=""7"">).
For information about well-formed HTML, see “Authoring Well-Formed HTML”
http://msdn.microsoft.com/en-us/library/aa923323.aspx
For examples of how to use these tags, see Adding formatting to headers and footers and Adding hypertext links and images to headers and footers.
See also
Changing headers and footers