The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's HTML Tag Reference

| Index | Previous Tag: <FIELDSET> | Next Tag: <FORM> |


<FONT>

Specifies the formatting for the text between this tag and its end tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
3.2 and later 1.0 and later 1.0 and later
Notes:
  • This tag requires the </FONT> end tag.
  • This tag is deprecated. Use the font-family style instead.
Attributes:
CLASS = "Text"
The style sheet class used by the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later 4.0 and later

Notes:

  • You can specify two or more classes; be sure to separate each class name with a space.

COLOR = "Color value"
The color of the text.

Support:

HTML StandardInternet ExplorerNetscape Navigator
3.0 and later 1.0 and later 2.0 and later

Notes:

FACE = "Text"
The typeface of the text.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 1.0 and later 3.0 and later

Notes:

  • The user must have the specified typeface installed on their system.
  • You can specify multiple typefaces, separated by commas.
  • If a typeface name includes spaces, you must surround the name with single quotes (e.g., 'Times New Roman').
  • This attribute is deprecated.

ID = "Text"
An alphanumeric string that uniquely identifies the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later 4.0 and later

Notes:

  • Although you can use letters and numbers for the ID, the first character must be a letter.

LANG = "Text"
The language used by the tag's attribute values and text content.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

POINT-SIZE = Positive integer
The size of the text, in points.

Support:

HTML StandardInternet ExplorerNetscape Navigator
Not supported Not supported 4.0 and later

SIZE = Positive integer
The relative size of the text.

Support:

HTML StandardInternet ExplorerNetscape Navigator
3.2 and later 1.0 and later 1.0 and later

Notes:

  • Use values between 1 and 7.
  • You can also set a size relative to the current <BASEFONT> value by using a plus sign (+) for larger text or a minus sign (-) for smaller text.
  • This attribute is deprecated.

STYLE = "Text"
The style or styles to use with the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later 4.0 and later

Notes:

  • If you enter multiple style properties, separate each one with a semi-colon (;).

Example:
This is regular text.<BR>
<FONT COLOR="NavyBlue" FACE="Arial, Helvetica, Verdana, 'Lucida Sans'" 
POINT-SIZE=20>
This is formatted text.
</FONT>
How It Looks:
This is regular text.
This is formatted text.

| Index | Previous Tag: <FIELDSET> | Next Tag: <FORM> |