Easy Tutorial
❮ Prop Element Style Prop Select Size ❯

JavaScript italics() Method


Definition and Usage

The italics() method is used to display a string in italic.

This method returns the string with <i> tags, as shown below:

<i>string</i>

Syntax


Browser Support

All major browsers support the italics() method.


Example

Display a string in italic:

❮ Prop Element Style Prop Select Size ❯