size (HTML attribute)
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
| IE | 5.5 | Full |
|---|---|---|
| 6.0 | Full | |
| 7.0 | Full | |
| Firefox | 1.0 | None |
| 1.5 | None | |
| 2.0 | None | |
| Safari | 1.3 | None |
| 2.0 | None | |
| 3.0 | None | |
| Opera | 9.2 | None |
| 9.5 | 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.

