{{ APIRef() }}{{obsolete_header}}
The HTMLBaseFontElement
interface provides special properties (beyond the regular {{domxref("HTMLElement")}} interface it also has available to it by inheritance) for manipulating {{HTMLElement("basefont")}} elements.
The <basefont>
element has been deprecated in HTML4 and removed in HTML5. This latest specification requires that this element implements {{domxref("HTMLUnknownElement")}} rather than HTMLBaseFontElement
.
Properties
Inherits properties from its parent, {{domxref("HTMLElement")}}.
-
HTMLBaseFontElement.color
-
Is a {{domxref("DOMString")}} representing the text color using either a named color or a color specified in the hexadecimal
#RRGGBB
format. -
HTMLBaseFontElement.face
- Is a {{domxref("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 {{domxref("DOMString")}} representing the font size as either a numeric or relative value. Numeric values range from
1
to7
with1
being the smallest and3
the default. Relative value starts with a'+'
or a'-
'.
Methods
No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('DOM2 HTML')}} | {{Spec2('DOM2 HTML')}} | Removed. |
{{SpecName('DOM1', "level-one-html.html#ID-32774408", "HTMLBaseFontElement")}} | {{Spec2('DOM1')}} | Initial definition. |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
See also
- The HTML element {{HTMLElement("basefont")}} was implementing this interface.