Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

Setting the font face

You can use the face attribute with the <font> tag to set the name of the font you want to use on your page. Remember that you don’t know which fonts users have so, although there are hundreds to choose from, try to use common fonts. The safest bet is to use a font that comes with Windows (although you can't be certain users haven't removed fonts).

Some of the most common fonts are "Arial," "Times New Roman," "Verdana" and "Courier New".

To set the font face:

<font face="arial">Hello everybody</font>

You can specify more than one font name in a <font> tag; simply enter the font face names separated by a comma. For example:

<font face="Arial,Helvetica,Verdana">
Hello everybody</font>

The browser checks for each font (in the order you give them) and displays the first one that is available. If it can't find any of them, it uses the default font. The default is usually Times Roman.

If a particular font is important, you might want to let users download it from your web page (assuming you can do this legally) or use a graphic instead.

You can apply font changes to several paragraphs; just put the paragraphs inside the <font> tag.