Properties
CSS
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";
