English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Reference

HTML: <i> tag

The HTML <i> tag only makes the text appear in italics, without providing any semantic meaning to the text. This tag is also commonly referred to as the <i> element.

Hint: The HTML <i> tag should not be confused with the <em> tag, which is used to emphasize text.

Online Example

!doctype html
<html
<head
<meta charset="UTF-8">
<title>HTML5 i tag usage (Basic Tutorial Website oldtoolbag.com)</title>/>title
</>head
<body
<h1>Heading 1</h1>
<p>We want to italicize <i>this text</i>/i>.</p>
</body>
</html>
Test to see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All mainstream browsers support the <i> tag.

Definition and Usage of Tags

<i> defines a part that is different from the rest of the text in the text, and presents this part of the text in italic.

The <i> tag is used to represent technical terms, idioms and proverbs of other languages, ideas, the names of spacecraft, etc.

The <i> tag is used for italic text, but does not emphasize the text like the <em> tag.

In most cases, it is recommended to use the <em> tag instead of the <i> tag.

When there is no other appropriate semantic element that can be used, please use the <i> element. Other semantic elements are as follows:

HTML 4.01 and HTML5differences between

In HTML 4.01 In, the <i> tag presents italic text. However, in HTML5 There is no need to do this in, you can use style sheets to format the text in the <i> element.

Global Attributes

Support for <i> tag Global Attributes of HTML.

Event Attributes

Support for <i> tag HTML Event Attributes.