HTML : Text formatting
Jérôme Versavel
Using Fonts
Texts are typically displayed with a standard font (Times New Roman under Windows, Helvetica under Macintosh), in a medium
size, and in black.
The
<FONT> tag allows you to change the font and can take up to three attributes:
SIZE,
COLOR and
FACE.
- SIZE defines the text size.

It can be any value from 1 to 7. The actual size depends on the browser.
- COLOR defines the colour of the text enclosed between the <FONT> and </FONT> tags.

The colour is given as a three-hexadecimal-value code in the following form #RRGGBB, for the red, green and blue values respectively.
- FACE defines the name of the font to use.

It is possible to indicate several names, in which case the browser will use the first font it finds.
You can combine all these attributes to get an original formatting:
<FONT SIZE="+1" COLOR="#FF0000" FACE="Times New Roman, Times, serif">My text rendered in red and Times font</FONT>
My text displayed in red and Times font