HTMLFontElement

The interface for <font>. Extends HTMLElementElement.

Deprecated. HTMLFontElement covers an obsolete element (WHATWG HTML §16.3 "Other elements, attributes and APIs"); it exists only for instanceof / constructor.name fidelity and content-attribute reflection, not for use in new content.

Reflected properties

All setters are guarded and throw NoModificationAllowedError on a read-only document.

Property Attribute Type Notes
color color string Reflects the content attribute verbatim.
face face string Reflects the content attribute verbatim.
size size string Reflects the content attribute verbatim.

See also