Set font-family to cursive in HTML and CSS

Description

The following code shows how to set font-family to cursive.

Example


<!--from w  w  w. ja v  a 2  s .  c om-->
<html>
<head>

<style type='text/css'>
body {
font-size: 40px;
}
p {
margin: 0;
}
p#cursive {
font-family: cursive;
}
</style>
</head>
<body>
<p id='cursive'>
This is cursive.
</p>
</body>
</html>

Click to view the demo

The code above generates the following result.

Set font-family to cursive in HTML and CSS
Home »
  HTML CSS Tutorial »
    Text »
      Font Family
HTML CSS Tutorial Font Family
Set font-family for two value in case the f...
Set font-family to cursive in HTML and CSS
Set font-family to monospace in HTML and CS...
Set font-family to sans-serif in HTML and C...
Set font-family to serif in HTML and CSS