CSS font-style

The font-style property in CSS allows you to specify the style of the font used for text. There are three possible values for this property:

Here is an example of how you can use the font-style property in CSS:

Result:

This is an example of text with italic font style.

In the example above, the text within the <p> tag is displayed in italic font style due to the font-style: italic; declaration in the CSS.

Experiment with different values for the font-style property to see how it affects the appearance of text on your website.