To specify a font-family of Arial, for example, you use: p This way, if neither Arial nor Helvetica is found, the browser at least knows to use some sans-serif font.įont-family: 'Courier New', Courier, monospace You can specify by font name (such as Arial, Helvetica, etc.) or font category (such as cursive, fantasy, monospace, etc.).
The font-family property is used in CSS to specify the font name to apply to an element.