<!doctype html>
<html>
<head>
<title>Font family</title>
<link href="style.css" rel="stylesheet">
</head>
<body>
<ol>
<li>Default serif</li>
<li>Default sans-serif</li>
<li>Default monospace</li>
<li>Default cursive, you don’t see this much</li>
<li>Default fantasy, maybe don’t do this</li>
<li>Futura, on a Mac; Verdana, on a PC</li>
<li>Some condensed Roboto, imported from Google Fonts</li>
<li>This will be in Playfair, using @font-face</li>
</ol>
</body>
</html>
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300&display=swap');
li:nth-child(1) { font-family: serif; }
li:nth-child(2) { font-family: sans-serif; }
li:nth-child(3) { font-family: monospace; }
li:nth-child(4) { font-family: cursive; }
li:nth-child(5) { font-family: fantasy; }
li:nth-child(6) { font-family: 'Futura', 'Verdana', sans-serif; }
li:nth-child(7) { font-family: 'Roboto Condensed', sans-serif; }
@font-face {
font-family: 'Playfair';
src: url('playfair--regular.woff2') format('woff2');
}
li:nth-child(8) { font-family: 'Playfair', serif; }
li + li { margin-top: 1em }