CSS 2 Example 37

>> English << | česky | Português ZVON > Tutorials > CSS2 tutorial
Intro / Search / ZVON
>> 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

AltStyle によって変換されたページ (->オリジナル) /