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>
<head lang='en'>
    <meta charset='UTF-8'>
    <style type='text/css'>
        p {
            font-family: 'Arial', 'Helvetica', 'SANS-SERIF';

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


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