Languages
[Edit]
EN

CSS - italic text

3 points
Created by:
May87
427

In this article, we would like to show how to italic text with CSS.

Quick solution:

span {
    font-style: italic;
}

 

Practical example using font-style property

The style property that makes the italic effect on text is font-style: italic.

Practical example:

// ONLINE-RUNNER:browser;

<!doctype html>
<html>
<head>
  <style>

    span {
        font-style: italic;
    }

  </style>
</head>
<body>
  <p>Some text with <span>italic</span> element.</p>
</body>
</html>

Note:

You can also use the HTML solution from the following article: HTML - italic text.

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join