i | Italic html

HTML <i> Tag

To display a part of the text in the italic form on the browser, the HTML <i> tag is used. This tag, however, does not add any logical meaning to the content within it. The HTML <em> tag is thus used to serve this purpose. Both the tags, however, have the same visual effects.

Syntax:

<i>Content</i>

Example:

<!DOCTYPE html>
<html>
<body>
<p> It is rightly said that <i>Don’t talk the talk if you can’t walk the walk</i>.</p>
</body>
</html>

Explanation:

In the above example, we are using the HTML <i> tag to display a part of the content in the italic form.

Global Attributes:

The HTML GLobal attributes are supported by the HTML <i> tag.

Event Attributes:

The HTML Event attributes are supported by the HTML <i> tag.

Supporting Browsers:

Chrome, IE, Firefox, Opera, and Safari.