Set the font variant with CSS

JavascriptWeb DevelopmentFront End Scripts

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 −

      <p style = "font-variant:small-caps;">
         This text will be rendered as small caps
Updated on 30-Jul-2019 22:30:22