Skip to: content, navigation

by Ian Lloyd

basefont (HTML element)

Spec
Depr. Empty Version
Yes Yes HTML 2
Browser support full matrix
IE5.5+ FF2 Saf3 Op9.5
Full None None None

Example

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

<head>
 ⋮
 <basefont size="4"/>
</head>
Type
header element, inline element
Contains
Nothing
Contained by
head element (usually) but can be placed anywhere in document

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.

Use This for…

basefont is used to affect text content of any kind.

Compatibility

IE5.5Full
6.0Full
7.0Full
Firefox1.0None
1.5None
2.0None
Safari1.3None
2.0None
3.0None
Opera9.2None
9.5None

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

Related Reading

User-contributed notes

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products

The Principles of Beautiful Web Design

Best Seller!

You don’t need to go to Art School to design great looking web sites!

Book Cover: The Principles of Beautiful Web Design

Download the FREE sample chapters