CSS – Italic Text
To display italic text using CSS, set font-style property for the HTML Element(s) with italic
value.
font-style: italic;
Examples
ADVERTISEMENT
Italic Paragraph
In the following example, we set the font-style of a paragraph to italic to display italic text.
index.html
Italic Heading
In the following example, we set the font-style of a heading <h2> to italic to display italic text.
index.html
Conclusion
In this CSS Tutorial, we learned how to display italic text using CSS font-style property, with examples.