1. Computing

Discuss in my forum

<font></font>

By

<font> Description:

The <font></font> tag defines how the enclosed text should look, including the face, size, style, and boldness. This element is deprecated in HTML 4.0 and XHTML 1.0.

<font> Web Browser Support:

<font> Attributes:

<font> End Tag:

</font> REQUIRED

<font> Contents:

Text. The following tags are valid within the <font> tag:
a, abbr, acronym, applet, b, basefont, bdo, big, br, button, cite, code, dfn, em, font, i, iframe, img, input, kbd, label, map, object, q, s, samp, script, select, small, span, strike, strong, sub, sup, textarea, tt, u, var

<font> Valid Context:

The <font> tag is valid within the following tag:
a, abbr, acronym, address, applet, b, bdo, big, blockquote, body, button, caption, center, cite, code, dd, del, dfn, div, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, q, s, samp, small, span, strike, strong, sub, sup, td, th, tt, u, var

<font> Usage:

  • change the color
    <font color="#ff0000">this text is red</font>
  • change the size
    <font size="+2">this text is +2</font>
  • change the face
    <font face="helvetica">this text is Helvetica</font>

<font> Special Notes:

  • You should use CSS instead of the font tag to change the look of your text.

More <font> Information:

  1. About.com
  2. Computing
  3. Web Design / HTML

©2014 About.com. All rights reserved.