font-style
Sets the font style of the object as italic, normal, or oblique.
Syntax
{ font-style:
sStyle }
Possible values
sStyle
String that specifies or receives one of the following values:
normal |
Default. Font is normal. |
italic |
Font is italic. |
oblique |
Font is oblique. If the font has no oblique form, it is rendered as italic. |
This property has a default value of normal. It is inherited.
Examples
The following example shows how to use the H3 element as a selector to set the font style to italic in H3 headings:
<style>
h3 {font-style:italic}
</style>
Standards information
This property is defined in Cascading Style Sheets (CSS), Level 1 (CSS1) .
Applies to
a, abbr, acronym, b, bdo, big, blockquote, body, button, caption, center, cite, code, custom, dd, defaults, del, dfn, div, dl, dt, em, embed, fieldset, font, form, frameset, frame, hn, i, iframe, img, input type=button, input type=checkbox, input type=file, input type=image, input type=password, input type=radio, input type=reset, input type=submit, input type=text, ins, li, object, ol, p, q, s, span, sub, table, td, th, tt, u, ul, var, xmp
See also
Concepts
Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.