TAG:  font    deprecated 4.0

<font> ... </font>
Available in versions: 3.2
Browser compatibility: Explorer 4, 5  Netscape 4, 6
 
The <font> tag and all associated attributes are officially deprecated effective with HTML 4.0. Instead, you are now to use style sheets. However, this tag remains in wide use on the Internet and is recognized by all major browsers.
 
The font tag is used to set the face (type), color, and size of the characters in a text.
 
The closing tag is mandatory.
 
Core Attributes
 
class    id    lang    style    title
 
Attributes
 
color
The color attribute is used to set the color of the text. It can be either a named color (such as red) or a six character hexadecimal RGB color code (such as #e26fa9).
 
face
The face attribute sets the font face (type) of the text, such as Arial or Courier. You can specify alternate faces by using a comma separated list. If a browser does not recognize the specified face, it will display the alternate face in the list or the default.
 
size
The size attribute is used to set the size of the text. The range is 1 to 7, and the default is 3. When you use + or - values to set the size using the font tag, the new size will be relative to the default value of 3, or to the value set using this attribute.
 
Code:
<font face="arial, helvetica" color="red" size="1">1</font>
<font face="arial, helvetica" color="red" size="2">2</font>
<font face="arial, helvetica" color="red" size="3">3</font>
<font face="arial, helvetica" color="red" size="4">4</font>
<font face="arial, helvetica" color="red" size="5">5</font>
<font face="arial, helvetica" color="red" size="6">6</font>
<font face="arial, helvetica" color="red" size="7">7</font>
<p>
<font face="arial, helvetica" color="red" size="5">c</font>
<font face="arial, helvetica" color="orange" size="5">c</font>
<font face="arial, helvetica" color="yellow" size="5">c</font>
<font face="arial, helvetica" color="green" size="5">c</font>
<font face="arial, helvetica" color="blue" size="5">c</font>
<font face="arial, helvetica" color="purple" size="5">c</font>
<font face="arial, helvetica" color="brown" size="5">c</font>
<p>
<font face="arial">Arial </font>
<font face="courier">Courier </font>
<font face="helvetica">helvetica </font>
<font face="palatino">Palatino </font>
<font face="symbol">Symbol </font>
<font face="times">Times >/font>

 
Output:
1 2 3 4 5 6 7
 
c c c c c c c
 
Arial Courier helvetica Palatino Symbol Times


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information