Example

A simple font-variant property example:

Laboratory

description & Usage

To convert all lowercase letters to uppercase, we use the small-caps property.

Informations

# Description
Default Value normal
Inherited yes
Animatable no
Version CSS1
JavaScript syntax object.style.fontVariant="small-caps"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
font-variant

Syntax

Values

Values Description
normal default
small-caps The browser displays a font with small dimensions.
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.