Easy Tutorial
❮ Pr Padding Pr Border Collapse ❯

CSS font-style Property

Example

Three paragraphs with different font styles:


Property Definition and Usage

The font-style property specifies the font style for text.

Default value: normal
Inherited: yes
--- ---
Version: CSS1
--- ---
JavaScript syntax: object.style.fontStyle="italic"
--- ---

Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
font-style 1.0 4.0 1.0 1.0 7.0

Property Values

Value Description
normal Default value. The browser displays a standard font style.
italic The browser displays an italic font style.
oblique The browser displays an oblique font style.
inherit Specifies that the font style should be inherited from the parent element.

Related Articles

CSS Tutorial: CSS Font

CSS Reference: font Property

❮ Pr Padding Pr Border Collapse ❯