Category: Basic HTML Components | Previous: BASE | Next: ISINDEX

<BASEFONT>

Description:

The default font properties. The basefont element sets the default size color and face of the font for the page. This element should be placed in the head.

Syntax:

<BASEFONT SIZE=5 COLOR="#rrggbb" FACE="Font List">

Attributes:

Attribute Value Description
SIZE 1-7 Sets the base font size of the page to the size 1-7 (default 3).
COLOR #rrggbb Sets the color of the base font on the page.
FACE Font List Sets the base font of the page to the first font name in the list that matches a font on the system.

Notes:

The color value "#rrggbb" is a HTML color code. An explanation of color codes, and a table of colors is available.

The FACE attribute is an Internet Explorer extension.

Example:

<BASEFONT SIZE=5 COLOR="#808080" FACE="Times New Roman, Courier">


Index: HTML Reference | Previous: BASE | Next: BGSOUND