Font Style

The font-style property is used to specify the font style the browser uses to render a character. The values of font-style are.
ValueDescription
normal
italic Cursive
obliqueSlanted, Incline
inherit inherited from the parent
example
 font-style : normal
 font-style : italic
snippet
<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>
Output

This is a paragraph text

This is a text inside div

This is a h1 text

This is a h2 text

This is a text inside div
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +