basefont (HTML element)

Spec
Depr. Empty Version
Yes Yes HTML 2
Browser support (more…)
IE5.5+ FF2 SA4 OP10 CH2
Full None None None None

Syntax

<basefont size="number"/>

Description

The basefont element was originally devised as a mechanism for resetting the default size for normal text using the seven font sizes that were available in early versions of HTML. In most cases, web authors used it once—in the document head—to set a default for the entire document.

Example

The basefont element is set inside the head of this document:

<head>
 ⋮
 <basefont size="4"/>
</head>

Use This for…

basefont is used to affect text content of any kind.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
Full Full Full Full None None None None None None None None None None None

This element is poorly supported—only Internet Explorer pays any attention to any of its attributes. The basefont element is also deprecated, having been removed from HTML 4. As such, you shouldn’t use this element.

In this Section

User-contributed notes

Related Products