Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1079032 of HTMLFontElement

  • Revision slug: Web/API/HTMLFontElement
  • Revision title: HTMLFontElement
  • Revision id: 1079032
  • Created:
  • Creator: rahuldecoded
  • Is current revision? No
  • Comment

Revision Content

{{ APIRef("HTML DOM") }} }

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

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

 

Revision Source

<p>{{ APIRef("HTML DOM") }} }</p>

<p>Implements the document object model (DOM) representation of the font element. The HTML Font Element (<a href="/en-US/docs/Web/HTML/Element/font">&lt;font&gt;</a>) defines the font size, font face and color of text.The &lt;font&gt; tag is not not supported in HTML5. Use CSS instead. .</p>

<h2 id="DOM_Information">Property:</h2>

<dl>
 <dd><strong>Inheritance Hierarchy for DOM :: HTMLFontElement:</strong></dd>
 <dt><a href="en-US/docs/Web/API/Node">Node</a></dt>
 <dt>&nbsp;&nbsp;&nbsp;&nbsp; |</dt>
 <dt>&nbsp;&nbsp;&nbsp;&nbsp; + --- <a href="/en-US/docs/Web/API/Element">Element</a></dt>
 <dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</dt>
 <dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + --- <a href="/en-US/docs/Web/API/HTMLElement">HTMLElement</a></dt>
 <dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</dt>
 <dt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + --- <a href="/en-US/docs/Web/API/HTMLFontElement">HTMLFontElement</a></dt>
 <dd>&nbsp;
 <p>Type: <strong>Object</strong></p>

 <p>Reference to the constructor of the interface object.</p>
 </dd>
 <dt>
 <h2 id="Represented_Tags"><strong>Represented Tags:</strong></h2>
 </dt>
 <dd>FONT</dd>
</dl>

<h2 id="Members">Members:</h2>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The HTMLFontElement object does not define any members.</p>

<h2 id="Differences_Between_HTML_4.01_and_HTML5">Differences Between HTML 4.01 and HTML5</h2>

<dl>
 <dd>The &lt;font&gt; tag is not supported in HTML5.</dd>
</dl>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<div>{{CompatibilityTable}}</div>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatGeckoDesktop(22.0)}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Phone</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatGeckoMobile(22.0)}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<p>&nbsp;</p>
Revert to this revision