CSS Font Style

The CSS font-style property specifies the font style for a text.

The possible values for this property are:

The font-style property can also be used to create a custom font style by combining the values of normal, italic, and oblique.

For example, the following code would specify that the font should be displayed in a font style that is both italic and oblique:

        
            h1{
    font-style: italic oblique;
}
        
    

Here is an example of how to use the CSS font-style property to change the font style of a text:

        
            h1{
    font-style: italic;
}
        
    

This code would change the font style of all h1 headings to italic.