Computer >> Computer tutorials >  >> Programming >> Javascript

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>