Apply a font to text

You can apply a particular font or a set of fonts (font family) to text in a web page. If a site visitor's system has the font that you specify, the browser will display your text in the specified font. If the site visitor doesn't have the font that you specify, their browser displays the text according to their browser preferences. If you apply a set of fonts to text, the browser uses the first listed font that is on the site visitor's system.

Tip:

To set the default font and other properties for all text in a page, create a style that uses BODY for its selector, and then set the font-based CSS properties you want for that style. For more information, see Create a style.