Set font-style to italic in HTML and CSS
Description
The following code shows how to set font-style to italic.
Example
<html>
<html>
<head>
<style type="text/css">
h2 {<!-- w w w .jav a 2s . co m-->
font-family: Georgia, Times, serif;
font-size: 20px;
font-style: italic;
}
</style>
</head>
<body>
<h1>this is a test. </h1>
<h2>this is a test. </h2>
<p>this is a test. <strong>this is a test. </strong> this is a test. </p>
<p>this is a test. </p>
</body>
</html>
The code above generates the following result.