Share via


FONT HTML Element

The FONT element specifies a new font, size, and color to be used for rendering the enclosed text. This element requires a closing tag.

Attributes

Attribute Value Description
COLOR Special Sets the color for rendered text. Font colors are disabled on grayscale devices; text is always rendered in black.
FACE Special Specifies a comma-separated list of font names in which the text is rendered.
SIZE 1...7

3 (default)

Specifies an integer font size — can also be a relative font size with a signed integer value, size="+1", or size="-2". This is mapped to an absolute font size by adding the current BASEFONT SIZE attribute.

Requirements

Pocket PC: Windows Mobile 2000 and later
OS Versions: Windows CE 3.0 and later

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.