Fonts

The font-family property defines the font to be used for an HTML element:

HTML file: Displayed by browser:
<h1 style="font-family:Times New Roman;">This is a heading</h1>
<p style="font-family:verdana;">This is a paragraph.</p>

This is a heading

This is a paragraph.

Good habit

Stick to common font-family types (eg: Arial, Courier, Verdana, Times New Roman). If you have the Disney font on your computer and use that font in your HTML, anyone viewing your webpage who does not have the Disney font on their computer will see something different than you do. Browsers pick from a list of available fonts on the viewer's computer.

And that is NOT always a good thing!

Back button Table of Contents Next button