Example

A simple font-style property example:

Laboratory

description & Usage

Shows the mode and style of fonts in CSS with the font-style property.

Informations

# Description
Default Value normal
Inherited yes
Animatable no
Version CSS1
JavaScript syntax object.style.fontStyle="italic"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
font-style

Syntax

Values

Values Description
normal default
italic The browser displays the font in italic mode.
oblique The browser displays the font in italics.
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.