CSS · Properties — CSS Fonts

font-variant

The CSS font-variant property. Initial value: normal. Inherited.

Syntax
font-variant: normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic( <feature-value-name> ) || historical-forms |

Example

Try it

Notes

Media: visual. Applies to: allElementsAndText. Computed value: asSpecified.

More in this group

font font-feature-settings font-kerning font-language-override font-optical-sizing font-palette font-size-adjust font-synthesis

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course