size (HTML attribute)
| Depr. | Version |
|---|---|
| Yes | HTML 4 |
| IE5.5+ | FF2 | SA4 | OP10 | CH2 |
|---|---|---|---|---|
| Full | None | None | None | None |
Syntax
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.
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.