HTML <basefont> tag
The <basefont> tag is used to set a common font for all the text on a page.
NOTE: The <basefont> tag only works in Internet Explorer.
NOTE: The <basefont> tag is deprecated and will not work with the XHTML Strict document type.
NOTE: The <basefont> tag has no closing tag and must go inside the head element of a webpage.
Attributes
| Attribute | Possible values | Description |
|---|---|---|
| color | colorName, hexValue, rgbValue | Sets the text color |
| face | fontName | Sets the text font |
| size | 1 - 7 | Sets the text size |
Standard attributes
class, dir, id, lang, style, title
For more information on standard attributes, check out our HTML standard attributes reference page.
Event attributes
NONE
For more information on event attributes, check out our HTML event attributes reference page.
Example
<basefont color="#4de55a" face="Georgia" size="5" />
All text will now be size 5, a Georgia font, and in the color #4de55a
Tips & notes
Use CSS instead of the <basefont> tag.