Compare font style settings:normal,italic,oblique in HTML and CSS

Description

The following code shows how to compare font style settings:normal,italic,oblique.

Example


<html>
<head>
<style type='text/css'>
body {<!--  www.j  a va  2 s.c  o  m-->
color: #000000;
background-color: #ffffff;
font-family: arial, verdana, sans-serif;
font-size: 12px;
}

td {
width: 200px;
}

p.one {
font-style: normal;
}

p.two {
font-style: italic;
}

p.three {
font-style: oblique;
}
</style>

</head>

<body>
<h1>font-style</h1>

<p class="one">This is a normal font</p>
<p class="two">This is an italic font</p>
<p class="three">This is an oblique font</p>

</body>
</html>

Click to view the demo

The code above generates the following result.

Compare font style settings:normal,italic,oblique in HTML and CSS
Home »
  HTML CSS Tutorial »
    Text »
      Font Style
HTML CSS Tutorial Font Style
Compare font style settings:normal,italic,o...
Compare the font-style properties in HTML a...
Set font-style to italic in HTML and CSS
Set font-style to normal in HTML and CSS
Set font-style to oblique in HTML and CSS