Search within TutorialsPark

CSS font-style Property


A specify the style of the font


Definition and Notes.

1. The CSS font-style property defines whether the font has a italic, oblique, or normal font-face.

2. Italic text is generally defined as a seperate font-face within a given font-family, and browsers do not convert normal to italic font-face unless an italic version is available

Syntax:

CSS font-style property. internetexplorer safari firefox opera chrome

View in Splitscreen»

Code-Editor:

Note-An oblique version of the font is applied only when its available, otherwise italic style is used.

Property Values

Value Description
normal To Remove the italic font-style.
italic To italicize the text
oblique To use an oblique version of the font, if it exits.Otherwise, the italic style is applied
inherit To child element inherits the font-style of the parent element.

Specifications

Specs Value
Name font-style
Value normal | italic | oblique | inherit
Initial Value Normal
Applies to all elements
Javascript syntax object.style.fontStyle="italic"
Inherited Yes
Computed Value Same as declared Value.
Browser Support internetexplorer safari firefox opera chrome

Related Examples.