Name
font-style
Values:
normal|italic|oblique
Example:
H1 { font-style: italic }
Applies to:
All elements
Inherited:
Yes
The font-style
property selects between
normal
(the default) and italic
or oblique
faces within a font family. Oblique
type is just a slanted version of the normal face. Italic is usually
a separate face design with more curved characters. Note that
bold
is part of font-weight
,
not font-style
in style sheet syntax.
Get Web Design in a Nutshell 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.