HOLLA TECH - LEARN

The font-style Property
 

The font-style property is typically used to specify italic text.

The HTML:

<p class=“italic”>This is a paragraph in italic style.</p>

 

The CSS:

p.italic {
   font-style: italic;
}

 

Result: 

Holla Tech - Learn CSS

NOTE!
copy and paste the codes in a Text editor to play around with the code!

The font-style Property
 

The font-style property has three values: normal, italic, 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;
}

 

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


BACK NEXT

CLICK ON THE BUTTON BELOW TO GO TO THE CSS MAIN COURSE PAGE. 

CSS MAIN COURSE PAGE

 


© License: All Rights Reserved 


CONTACT HOLLA TECH – LEARN SUPPORT