View video tutorial

CSS Font-Style

CSS

This property is used to specify font style.

CSS font-style

The font-style property is used to specify what type of font to display.

font-weight: italic | oblique | normal;  

Example

#p1 {
  font-style: italic;   
}
#p2 {
  font-style: oblique; 
}
#p3 {
  font-style: normal; 
}
Try it Now »

Click on the "Try it Now" button to see how it works.