Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

CSS Example: font-family

Examples

This is an example of a serif font.
This is an example of a sans-serif font.
This is an example of a monospace font.
This is an example of a cursive font.
This is an example of a fantasy font.

Styles Used

.exampleserif {
	font-family: Times, "Times New Roman", Georgia, serif;
}

.examplesansserif {
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

.examplemonospace {
	font-family: "Lucida Console", Courier, monospace;
}

.examplecursive {
	font-family: cursive;
}

.examplefantasy {
	font-family: fantasy;
}