Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
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.
Properties
Inherits properties from its parent, HTMLElement.
HTMLBaseFontElement.color- Is a
DOMStringrepresenting the text color using either a named color or a color specified in the hexadecimal#RRGGBBformat. HTMLBaseFontElement.face- 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. HTMLBaseFontElement.size- Is a
DOMStringrepresenting the font size as either a numeric or relative value. Numeric values range from1to7with1being the smallest and3the default. Relative value starts with a'+'or a'-'.
Methods
No specific method; inherits methods from its parent, HTMLElement.
Specifications
| Specification | Status | Comment |
|---|---|---|
| Document Object Model (DOM) Level 2 HTML Specification The definition of 'HTMLBaseFontElement' in that specification. |
Recommendation | No change |
| Document Object Model (DOM) Level 1 Specification The definition of 'HTMLBaseFontElement' in that specification. |
Recommendation | Initial definition |
Browser compatibility
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|---|
| Basic support | No support | 20 (12.10240) | No support | (Yes) | No support | ? |
| Feature | Android | Edge | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support | ? | (Yes) | ? | ? | ? | ? |
See also
- The HTML element
<basefont>was implementing this interface.