property

font-variant-caps — CSS reference

Requests alternate capitalization glyphs; initial normal, inherited. Small caps are not merely lowercase text converted to uppercase. Missing small-cap glyphs may be synthesized; other features can depend on the font.

Formal Syntax & Structure

css syntaxcss
normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps

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-caps:small-caps}</style><body><p id="a">Office 012345 — typography</p><p id="b" lang="fa" dir="rtl">سلام دنیا</p></body></html>
CSS Reference