CSS: Specifying a font family

This entry is part 10 of 26 in the series Basic CSS

As not everyone has the same fonts installed in their PC, we can specify a font family.

If the computer does not have the first font installed, it checks for the second, and then the third until it finds a match.

<!DOCTYPE html>
<html>
<head lang='en'>
        
    <meta charset='UTF-8'>
    <title>Codecrawl.com-Hyperlinks</title>
    <style type='text/css'>
        p {
            font-family: 'Arial', 'Helvetica', 'SANS-SERIF';
        }
    </style>
</head>
<body>

<p>Ushuaia is commonly regarded as the southernmost city in the world</p>

</body>
</html>

Series Navigation<< CSS: Additional Hyperlink styles
CSS: Specifying font size >>