CSS font-styleProperty


Example

Set different font styles for three paragraphs:

p.normal {font-style:normal}
p.italic {font-style:italic}
p.oblique {font-style:oblique}

Try it Yourself »

Property definition and usage instructions

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

Default value: normal
Inherited: yes
version: CSS1
JavaScript Syntax: object.style.fontStyle="italic"


Browser Support

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

Property
font-style 1.0 4.0 1.0 1.0 7.0

Property value

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 Manualfont property

other extensions