Font Variant

suggest change

Values:

normal

The initial value. Letters keep their usual case.

small-caps

Shows lowercase letters as smaller capitals. Letters that were already uppercase stay full-size capitals.

CSS:

.smallcaps{
   font-variant: small-caps;
}

HTML:

<p class="smallcaps">
    Documentation about CSS Fonts
    <br>
    aNd ExAmpLe
</p>

Output:

Note: The font-variant property is a shorthand for the properties: font-variant-caps, font-variant-numeric, font-variant-alternates, font-variant-ligatures, and font-variant-east-asian.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents