This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
<basefont> element has been deprecated in HTML4 and removed in HTML5. This latest specification requires that this element implements
HTMLUnknownElement rather than
Note: Use CSS Fonts features instead.
Inherits properties from its parent,
- Is a
DOMStringrepresenting the text color using either a named color or a color specified in the hexadecimal
- Is a
DOMStringrepresenting a list of one or more font names. The document text in the default style is rendered in the first font face that the client's browser supports. If no font listed is installed on the local system, the browser typically defaults to the proportional or fixed-width font for that system.
- Is a
DOMStringrepresenting the font size as either a numeric or relative value. Numeric values range from
1being the smallest and
3the default. Relative value starts with a
No specific method; inherits methods from its parent,
This feature was present in the HTML specification up through HTML 3.2, but was deprecated in HTML 4, and then removed — and so is not in the current HTML specification. No modern browsers support it and this feature is no longer on track to become a standard.
BCD tables only load in the browser
- The HTML element
<basefont>was implementing this interface.