We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

Nuestros voluntarios aún no han traducido este artículo al Español. ¡Únete a nosotros y ayúdanos a traducirlo!
También puedes leer el artículo en English (US).

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.


Inherits properties from its parent, HTMLElement.

Is a DOMString representing the text color using either a named color or a color specified in the hexadecimal #RRGGBB format.
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.
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 '-'.


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


Specification Status Comment
Document Object Model (DOM) Level 2 HTML Specification
The definition of 'HTMLBaseFontElement' in that specification.
Obsolete No change
Document Object Model (DOM) Level 1 Specification
The definition of 'HTMLBaseFontElement' in that specification.
Obsolete Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support No Yes No Yes No ?
color No Yes No Yes No ?
face No Yes No Yes No ?
size No Yes No Yes No ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No No Yes ? No ? ?
color No No Yes ? No ? ?
face No No Yes ? No ? ?
size No No Yes ? No ? ?

See also

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

Etiquetas y colaboradores del documento

 Colaboradores en esta página: fscholz, Sebastianz, erikadoyle, kollishivagangadhar, teoli, kscarfone
 Última actualización por: fscholz,