Name

font-style

Values:

italic | oblique | normal | inherit

Initial value:

normal

Applies to:

All elements.

Inherited:

Yes.

Computed value:

As specified.

Description:

This sets the font to use an italic, oblique, or normal font face. Italic text is generally defined as a separate face within the font family. It is theoretically possible for a user agent to compute a slanted font face from the normal face. However, the reality is that user agents rarely recognize the difference between italic and oblique text and almost always render both in exactly the same way.

Examples:

em {font-style: oblique;}
i {font-style: italic;}

Supported by:

Firefox, Internet Explorer, Opera, Safari.

Get CSS Pocket Reference, 3rd Edition 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.