W3 3.2y
4.0d
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y

<FONT>...</FONT>

Description

Change the font which is used to draw the text.

DTD

Note: This element is deprecated, and this DTD fragment is taken from the
      Transitional DTD.

<!ELEMENT FONT - - (%inline;)*         -- local change to font --><!ATTLIST FONT
  %coreattrs;                          -- id, class, style, title --
  %i18n;                               -- lang, dir --
  size        CDATA          #IMPLIED  -- [+|-]nn e.g. size="+1", size="4" --
  color       %Color;        #IMPLIED  -- text color --
  face        CDATA          #IMPLIED  -- comma separated list of font names --
  >
from the HTML 4.0 DTD, "Copyright © W3C, (MIT, INRIA, Keio). All Rights Reserved."

Attributes

Core attributes: class id style title
Internationalization attributes: dir lang

W3 3.2y
4.0d
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y
COLOR
Change the color of the font.
See the page Using colors for a description on specifying colors.
W3 3.2n
4.0n
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2y
2.1y
EFFECT
Use the effect attribute to set the font effect to the value relief or emboss. In version 1.1 of the WebTV HTML interface, the font effect can also be shadow. If the effect attribute is not specified, the text is plain.

relief
Draws the text so that it seems raised from the surface of the page.
emboss
Draws the text so that it seems pressed into the surface of the page.
shadow
Draws the text with a shadow cast down and to the right of the text.

W3 3.2n
4.0d
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2n
2.1n
FACE
Change the font of the text. You can supply more than one name, delimited by a comma. The browser will use the first font of the list which is available. So when the following statement <FONT face="Cotton,Arial"> is rendered by the browser and the font Cotton is installed then this font will be used. If this font is not installed then Arial is searched.
If none of the supplied fonts are available then the browser will use a default font.
W3 3.2n
4.0n
NS 3.0n
4.0y
IE 3.0n
4.0n
TV 1.2n
2.1n
POINT-SIZE
This lets you set the size of the font exactly, instead of the SIZE attribute which only has 7 possible sizes. You must supply a positive integer as the value.
W3 3.2y
4.0d
NS 3.0y
4.0y
IE 3.0y
4.0y
TV 1.2y
2.1y
SIZE
Change the size of the font. You can supply an absolute size, in the range 1 - 7 or change the current size by supplying a + or - in front of the size. The default size is 3, or the value set with the BASEFONT element.

To change the font size by 1, the elements BIG and SMALL can be used instead of the FONT element.


W3 3.2n
4.0n
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2y
2.1y
TRANSPARENCY
Use the transparency attribute to allow the background to show through the text. The transparency of the text can range from a value of 0 (fully opaque) to 100 (fully transparent). The default value for transparency is 0. Note that the WebTV interface has implemented optimizations for a transparency value of 50 that make pages draw faster.

Examples

Source
<FONT face="Comic sans MS,Arial" transparency="50">
Lets <FONT size="+2">change</FONT>
<FONT size="+3">the</FONT>
<FONT size="+4">size</FONT>
<FONT size="+3">of</FONT>
<FONT size="+2">the</FONT> font.
</FONT>
 
Result
Lets change the size of the font.
 
Source
<FONT face="Times New Roman" size="+2">
<FONT color="#FF0000">Or</FONT>
<FONT color="#FF7F00">give</FONT>
<FONT color="#FFFF00">the</FONT>
<FONT color="#7FFF00" point-size="70">font</FONT>
<FONT color="#00FF7F">a</FONT>
<FONT color="#00FFFF">nice</FONT>
<FONT color="#0000FF">color.</FONT>
</FONT>
 
Result
Or give the font a nice color.
Statistics