Font tag

PREV
NEXT

The <font> tag specifies a font or list of fonts to display the text.

The font tag supports the following attributes:

  • color; Only hexadecimal color (#FFFFFF) values are supported. For example, the following HTML code creates red text:

    <font color='#FF0000'>This is red text</font>
  • face; Specifies the name of the font to use. As shown in the following example, you can specify a list of comma-delimited font names, in which case Flash Player selects the first available font:

    <font face='Times, Times New Roman'>Displays as either Times or Times New Roman...</font>
  • size; Specifies the size of the font, in pixels, as shown in the following example:

    <font size='24' color='#0000FF'>This is blue, 24-point text</font>

You can also use relative point sizes instead of a pixel size, such as +2 or -4.