Skip to: content, navigation

by Ian Lloyd

size (HTML attribute)

Spec
Depr. Version
Yes HTML 4
Browser support full matrix
IE5.5+ FF2 Saf3 Op9.5
Full None None None
size="number (1-7)"

Example

The size attribute is shown below:

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

Description

The size attribute for basefont is supposed to affect the base size of text for the document.

Value

A number between 1 to 7 (1 = smallest, 7 = largest). Browser default value is 3.

Compatibility

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

Support for this is almost zero in current browsers. It is included here for reference only, but it has almost no use in modern browsers. The solution is to use CSS instead to set a value for the font-size property on the body element.

User-contributed notes

There are no comments yet.

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