The Font Style or the font-style property in CSS is used to make the text in italic(i.e. Slightly tilted text).
Usually the font-style property in CSS is used to apply the style italic to the text. It has three values,
Let us understand Font Style with the below example.
<html>
<head>
<style>
p {
font-style: italic;
}
</style>
</head>
<body>
<p>
This is the first paragraph.
</p>
</body>
</html>
So, if you look at the above example, we have defined the Font Style, setting the font-style as italic.
<style>
p {
font-style: italic;
}
</style>And if you look at the above output, the text is a little tilted giving it italic effect.