Create a small-caps effect for CSS


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>

Updated on: 30-Jan-2020

396 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements