Set the font variant with CSS

To set the font variant, use the font-variant property. Set the font to small-caps and normal.

You can try to run the following code to set the font-variant to small-caps with CSS −


   
   
   
   
      

This text will be rendered as small caps

Updated on: 2019-07-30T22:30:22+05:30

115 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements