>> English << | česky | PortuguêsZVON > Tutorials > CSS2 tutorial
>> Example 37 << | Prev | Next | Index | Contents

The property font-family specifies the font to be used. There are 5 generic families (serif, sans-serif, cursive, fantasy, monospace) which are used when the specified font set is not available.

XML SourceCSS stylesheetExample link
(1)
     <AAA>
          <serif>serif</serif>
          <sans-serif>sans-serif</sans-serif>
          <cursive>cursive</cursive>
          <fantasy>fantasy</fantasy>
          <monospace>monospace</monospace>
     </AAA>

serif {font-family:serif}
sans-serif {font-family:sans-serif}
cursive {font-family:cursive}
fantasy {font-family:fantasy}
monospace {font-family:monospace}
View output