Font-style part 2

CSS Fundamentals
Working with Text
font-style
33
2/2
         

The font-style Property



The font-style property has three values: normalitalic, and oblique
Oblique is very similar to italic, but less supported. 

The HTML:<p class="normal">This paragraph is normal.</p>
<p class="italic">This paragraph is italic.</p>
<p class="oblique">This paragraph is oblique.</p>

The CSS:
p.normal {
font-style: normal;
}
p.italic {
font-style: italic;
}
p.oblique {
font-style: oblique;
}
Try It Yourself

The HTML <i> tag will produce exactly the same result as the italic font style

Comments

Popular posts from this blog

font-family part 1