font-style
top
TOC
Collapse the table of content
Expand the table of content

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) Ee371225.xtlink_newWindow(en-us,Expression.40).png.

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

font

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.

Community Additions

ADD
Show:
© 2016 Microsoft