View video tutorial

CSS Font-Variant

CSS

This property is used to specifies how to set font variant.

CSS font-variant

The font-variant property is used to specifies how to set font variant of an element.

font-weight: normal | small-caps;  

Example

#p1 {
  font-variant: normal;   
}
#p2 {
  font-variant: small-caps; 
}
Try it Now »

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