Set font-family to serif in HTML and CSS
Description
The following code shows how to set font-family to serif.
Example
<!-- ww w.j a v a2 s. c o m-->
<html>
<head>
<style type='text/css'>
body {
font-size: 40px;
}
p {
margin: 0;
}
p#serif {
font-family: serif;
}
</style>
</head>
<body>
<p id='serif'>
This is serif.
</p>
</body>
</html>
The code above generates the following result.