Implements the document object model (DOM) representation of the font element. The HTML Font Element (<font>) defines the font size, font face and color of text.
The <font> tag is not not supported in HTML5. Use CSS instead.
-
DOM Information:
- Inheritance Hierarchy for DOM :: HTMLFontElement:
- Node
- |
- + --- Element
- |
- + --- HTMLElement
- |
- + --- HTMLFontElement
-
Represented Tags:
- FONT
Members:
The HTMLFontElement object does not define any members.
Differences Between HTML 4.01 and HTML5
- The <font> tag is not supported in HTML5.
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatGeckoDesktop(22.0)}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatGeckoMobile(22.0)}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |