8.4. Other Font Properties

8.4.1. The font-style Property

The font-style property determines whether the element is rendered in normal (Roman), italic, or oblique font style. For all practical purposes, italic and oblique are identical.

8.4.2. The font-variant Property

In its current incarnation, the font-variant property has only one effect: it determines whether text should be displayed in small-caps format. In an ideal world, if the current font has a small-caps variant defined, the browser would use that font. Unfortunately, no current browser is smart enough to do that. Rather, current browsers render lowercase letters as capital letters with a smaller size than that used for the main font.

Figure 8-4 demonstrates the font-variant ...

Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.