# font-variant-caps

> The `font-variant-caps` CSS property controls the usage of alternate glyphs for capital letters.

## How do I use real small caps in CSS?

The property that selects alternate glyphs for capital letters, like 'small-caps', 'all-small-caps' or 'titling-caps'. It uses real small-cap glyphs from the font when available, which looks better than shrunk capitals.

- Topic: Font Features
- Type: property
- Browser support: Chrome 52+, Chrome Android 52+, Edge 79+, Firefox 34+, Firefox Android 34+, Safari 9.1+, Safari iOS 9.3+

## Example

Wrong:

```css
abbr {
  text-transform: uppercase;
  font-size: 0.8em;
}
```

Right:

```css
abbr {
  font-variant-caps: all-small-caps;
}
```

'all-small-caps' uses the font's small-cap glyphs, which match the stroke weight of the surrounding text.

## Common mistakes

- Writing acronyms in uppercase and shrinking them with `font-size`, which looks too thin.
- Small caps look synthetic because the font has no small-cap glyphs.

## Key points

- Small caps use `font-variant-caps`, not `text-transform: uppercase` with a smaller font size.
- 'all-small-caps' is used for acronyms, so capital letters also become small caps.
- The text in HTML keeps its normal case, since screen readers read the source text.

## Interview questions

### What is the difference between small-caps and all-small-caps?

'small-caps' turns only lowercase letters into small caps. 'all-small-caps' turns both lowercase and uppercase letters into small caps.

### What happens if the font has no small caps?

The browser draws them by scaling capitals, unless `font-synthesis` disables that.

## Related cards

- [font-variant](https://wonderium.dev/css/font-variant.md)
- [text-transform](https://wonderium.dev/css/text-transform.md)
- [font-synthesis](https://wonderium.dev/css/font-synthesis.md)
- [`<abbr>`](https://wonderium.dev/html/abbr.md)

---

- Level: [CSS](https://wonderium.dev/css.md)
- HTML version: https://wonderium.dev/css/font-variant-caps
- Last updated: 2026-11-25
