Export (0) Print
Expand All

font-style

Sets the font style of the object as italic, normal, or oblique.

{ font-style: sStyle }

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.

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>

A, ADDRESS, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, CUSTOM, DD, DEFAULTS, DFN, DIV, DL, DT, EM, FIELDSET, FORM, HN, HTML, I, 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, LI, OL, P, S, SELECT, SPAN, SUB, TABLE, TBODY, TD, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP

Concepts

Community Additions

ADD
Show:
© 2015 Microsoft