CSS font-style Property


A type of font The CSS property is used to style the given text in a normal, italic, or oblique font-family face. We can assign importance as well as decorate the specific text using the font-style property. It contributes to a better user experience. If we want to give any type of text design in CSS, we can use the CSS font-style property.

Syntax

Example

Preview

Property Values

Value Description
normal The browser uses a standard font style. This is the default setting.
italic The browser uses italic font style.
oblique The browser displays a font style that is oblique.
initial This property is set to its default value.
inherit This property is inherited from its parent element.

Supported Browsers

Property Chrome Firefox Safari Edge / IE Opera
font-style 1.0 1.0 1.0 4.0 7.0