CSS font-variant property

Usage

Used to display text using small-caps. This turns all lower case letters into small capitals.

Values

  • normal - default
  • small-caps

Example

Code:

p {
  font-variant: small-caps;
}

Output:

This is a normal paragraph

In This Paragraph Only The First Letter Of Each Word Is In Large Caps