Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML <i> Tag


Example

<p>He named his car <i>The lightning</i>, because it was very fast.</p>
Try it Yourself »

Definition and Usage

The <i> tag defines a part of text in an alternate voice or mood. The content of the <i> tag is usually displayed in italic.

The <i> tag can be used to indicate a technical term, a phrase from another language, a thought, or a ship name, etc.

Use the <i> element only when there is not a more appropriate semantic element, such as:


Browser Support

Element
<i> Yes Yes Yes Yes Yes

Global Attributes

The <i> tag also supports the Global Attributes in HTML.


Event Attributes

The <i> tag also supports the Event Attributes in HTML.


Related Pages

HTML tutorial: HTML Text Formatting

HTML DOM reference: Italic Object


Default CSS Settings

Most browsers will display the <i> element with the following default values:

Example

i {
  font-style: italic;
}
Try it Yourself »