In this example, we will learn how to make text italic using CSS. We can use the font-style
property to set the style of a font.
HTML
<span class="example">Make this italic </span>
CSS
.example{
font-style: italic;
}
Output
Here, the font-style: italic
makes the text italic.
In this example, we learned how to make text italic using CSS. We used the font-style
property with italic as its value to make the text italic.