1. Home
  2. Computing & Technology
  3. Web Design / HTML

<font></font>

By , About.com Guide

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

Return to XHTML Element (HTML Tags) Library

Explore Web Design / HTML
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.