ScanSkill
CSS Examples

How to Make Text Italic using CSS

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.

Prerequisites

Example

HTML

        <span class="example">Make this italic </span>

CSS

        .example{
            font-style: italic;
        }

Output

How to Make Text Italic using CSS

Here, the font-style: italic makes the text italic.

Conclusion

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.