property
font-variant — CSS reference
Shorthand for typographic variants; omitted components reset to their initial states. Inherited via longhands. None disables the controlled ligatures and resets other components. Use individual longhands to change just one group.
Formal Syntax & Structure
css syntaxcss
normal | none | <font-variant-ligatures> || <font-variant-caps> || <font-variant-numeric> || <font-variant-east-asian> || <font-variant-alternates> || <font-variant-position> || <font-variant-emoji>Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS font lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}
#a{font-variant:small-caps tabular-nums}</style><body><p id="a">Office 012345 — typography</p><p id="b" lang="fa" dir="rtl">سلام دنیا</p></body></html>