font-style

The font-style property selects between normal, italic, and oblique faces within a font family.

Syntax

font-style: normal | italic | oblique | inherit
Initial: normal
Applies To: all elements
Inherited: yes
Percentages: NA
Media: visual

Values

font-style: value
Value Description
italic Cursive font which is slanted to the right
normal Upright font
oblique Normal font which is slanted to the right

DOM

[window.]document.getElementById("element-id").style.fontStyle = "font-style";

Example | italic

Example | normal

Example | oblique

Example | DOM

External

W3C Cascading Style Sheets, level 1

W3C Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification