BASEFONT

Description

Sets the font value that is used as the default font when rendering text.

Syntax

<BASEFONT
CLASS=Style Sheet class name
COLOR=color value
FACE=font
ID=value
LANG=language
SIZE=n
>

Parameter

Description

CLASS

Class of the tag being defined. This is used to associate a subclassed style sheet with the tag.

COLOR

Color to be used by the font or horizontal rule. Colours can either be set by using one of the reserved colour names, or as a hex rrggbb triplet value. This attribute is not supported by Netscape 4.0.

FACE

Current font typeface.This attribute allows changing of the face of the HTML document BASEFONT, exactly as it works for <FONT FACE= ...>. This attribute is not supported by Netscape 4.0.

ID

SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid ID values must begin with a letter. The underscore character, "_", may be used in the ID name. The ID should be unique throughout the scope of the document. If more than one object with the same identifier exists in a document, a collection of those named items is created that can only be referenced by ordinal position.

LANG

Specifies which language to use in ISO standard language abbreviation form.

SIZE

Font size between 1 and 7 (7 is largest).

 

Example

<BASEFONT SIZE=3>

The code is rendered as: This sets the base font size to 3.


<FONT SIZE=+2>

The code is rendered as: Now the font size is 7.

Remarks

This is an empty element and does not require a closing tag. This element may be used within the BODY tag or the HEAD tag. BASEFONT should appear before any displayed text in the BODY of the document.