font-style property is used to specify the font style the browser uses to render a character.
The values of font-style are.
| Value | Description |
|---|---|
normal | |
italic | Cursive |
oblique | Slanted, Incline |
inherit | inherited from the parent |
font-style : normal font-style : italic
<html>
<head>
<style>
p {font-style:normal;}
div {font-style:italic}
h1 {font-style:normal;}
h2 {font-style:italic}
span {font-style:oblique}
</style>
</head>
<body>
<p>This is a paragraph text</p>
<div>This is a text inside div</div>
<h1>This is a h1 text</h1>
<h2>This is a h2 text</h2>
<span>This is a text inside div</span>
</body>
</html>This is a paragraph text
