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: 2020-01-30T09:25:02+05:30

519 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements