c522-font-family-000

font-family

WeasyPrint

This browser

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3  <head>
 4   <title>CSS Test: font-family</title>
 5   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#font-family">
 6   <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
 7   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 8   <style type="text/css">
 9    p { margin: 0; color: navy; }
10    div.a {font-family: serif;}
11    div.b {font-family: monospace;}
12    .one {font-family: serif;}
13    .two {font-family: sans-serif;}
14    .three {font-family: cursive;}
15    .four {font-family: fantasy;}
16    .five {font-family: monospace;}
17    .six {font-family: sans-serif,cursive;}
18    .seven {font-family: monospace,serif;}
19   </style>
20   <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-family-prop" title="15.3 Font family: the 'font-family' property">
21  </head>
22  <body>
23   <div class="a">
24    <p> This sentence should be in a serif font. </p>
25    <p class="one"> This sentence should be in a serif font. </p>
26    <p class="two"> This sentence should be in a sans-serif font. </p>
27    <p class="three"> This sentence should be in a cursive font. </p>
28    <p class="four"> This sentence should be in a fantasy font. </p>
29    <p class="five"> This sentence should be in a monospace font. </p>
30   </div>
31   <p class="six"> This sentence should be in a sans-serif font. </p>
32   <p class="seven"> This sentence should be in a monospace font. </p>
33   <div class="b">
34    <p> This sentence should be in a monospace font. </p>
35    <p class="one"> This sentence should be in a serif font. </p>
36    <p class="two"> This sentence should be in a sans-serif font. </p>
37    <p class="three"> This sentence should be in a cursive font. </p>
38    <p class="four"> This sentence should be in a fantasy font. </p>
39    <p class="five"> This sentence should be in a monospace font. </p>
40   </div>
41  </body>
42 </html>