basefont (HTML element)
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
headelement (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
| 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 |
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.
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.

