HTMLBaseFontElement

Deprecated: 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.

The HTMLBaseFontElement interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <basefont> elements.

The <basefont> element has been deprecated in HTML4 and removed in HTML5. This latest specification requires that this element implements HTMLUnknownElement rather than HTMLBaseFontElement.

Note: Use CSS Fonts features instead.

Properties

Inherits properties from its parent, HTMLElement.

HTMLBaseFontElement.color

Is a DOMString representing the text color using either a named color or a color specified in the hexadecimal #RRGGBB format.

HTMLBaseFontElement.face

Is a DOMString representing 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.

HTMLBaseFontElement.size

Is a DOMString representing the font size as either a numeric or relative value. Numeric values range from 1 to 7 with 1 being the smallest and 3 the default. Relative value starts with a '+' or a '-'.

Methods

No specific method; inherits methods from its parent, HTMLElement.

Specifications

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.

Browser compatibility

BCD tables only load in the browser

See also

  • The HTML element <basefont> was implementing this interface.