font-style

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

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

Values

Δ

font-style: value;
 
Value: Description:
inherit Takes the same computed value as the property for the element's parent
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 | Values | italic

Δ

Example | Values | normal

Δ

Example | Values | oblique

Δ

Example | DOM

Δ

References

Δ