HTMLFontElement

This article needs a technical review. How you can help.

This article needs an editorial review. How you can help.

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. .

Property

Inheritance Hierarchy for DOM :: HTMLFontElement:
Node
     |
     + --- Element
                   |
                   + --- HTMLElement
                                       |
                                       + --- HTMLFontElement
 

Type: Object

Reference to the constructor of the interface object.

Represented Tags

FONT

Methods

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

Method Summary
string getColor( )                     
string getFace( )
string getSize( )
void setColor(  const DOMString & )
void setColor(  const DOMString & )
void setColor(  const DOMString & )

 

Specifications

The <font> tag is not supported in HTML5.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support ? 22.0 (22.0) ? ? ?
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? 22.0 (22.0) ? ? ?

 

Document Tags and Contributors

 Contributors to this page: rahuldecoded
 Last updated by: rahuldecoded,