Usage of font-variant property in CSS

The font-variant property is used to create a small-caps effect. Possible values are normal and small-caps.

<html>
   <head>
   </head>
   <body>
      <p style = "font-variant:small-caps;">
         This text will be rendered as small caps
      </p>
   </body>
</html>
Updated on: 2020-01-30T10:36:27+05:30

77 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements