size (HTML attribute)

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

Syntax

size="number (1-7)"

Description

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

Example

The size attribute is shown below:

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

Value

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

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

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.

Related Products