CSS font-style property
Three paragraphs have different font styles:
p.italic {font-style:italic}
p.oblique {font-style:oblique}
Try it out . . .
Description of property definition and use
The font-style property specifies the font style of the text.
Default: | normal |
---|---|
Inherited: | yes |
Version: | CSS1 |
JavaScript syntax: | object .style.fontStyle="italic" |
Browser support
The numbers in the table support the first browser version number of the property.
Attributes | |||||
---|---|---|---|---|---|
font-style | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
The property value
Value | Describe |
---|---|
normal | The default. The browser displays a standard font style. |
italic | The browser displays an italic font style. |
oblique | The browser displays a tilted font style. |
inherit | Specifies that the font style should be inherited from the parent element. |
Related articles
CSS tutorial: CSS Font
CSS Reference Manual: Font Properties