Create a small-caps effect for CSS

JavascriptWeb DevelopmentFront End Scripts

To create a small-caps effect, use the font-variant property.

Example

You can try to run the following code to learn how to work with font-variant property in CSS:

<html>
   <head>
   </head>
   <body>
      <p style = "font-variant:small-caps;">
         Asia, Antartica, Africa are continents
      </p>
   </body>
</html>
raja
Published on 13-Apr-2018 09:02:46
Advertisements