References

Beginner-friendly references for web development, with live, editable examples.

The HTML <i> tag

Element All modern browsers Updated
Quick answer

The HTML <i> element marks text in an alternate voice or mood — technical terms, foreign-language phrases, a thought, a ship name — rendered italic. For text you want to emphasize (changing the meaning), use <em> instead.

Overview

The <i> element marks text that is in a different voice or mood from the surrounding prose — traditionally shown in italics. Its uses are specific: a foreign-language phrase (c'est la vie), a Latin taxonomic name, a technical term on first mention, a character's unspoken thought, or a transliteration.

What it is not is emphasis. When italics would represent stress that changes how a sentence is read aloud, use <em> instead — that distinction is the whole point of having both elements. <i> says "this is set apart"; <em> says "stress this."

For purely decorative italics with no semantic role, the CSS font-style: italic declaration is the right tool. Like its bold sibling <b>, <i> was redefined in HTML5 to carry this "alternate voice" meaning rather than just "make it italic."

Syntax

<p>The term <i>lorem ipsum</i> is placeholder text.</p>

Example

Live example
<p>She whispered <i lang="fr">au revoir</i> and left.</p>

Best practices

  • Use <i> for text in an alternate voice — foreign phrases, technical terms, taxonomic names, inner thoughts.
  • For italics that represent emphasis, use <em> instead.
  • For purely decorative italics, set font-style: italic in CSS.
  • Add the lang attribute on foreign-language phrases so assistive technology pronounces them correctly.

Frequently asked questions

What is the difference between i and em?
<em> marks stress emphasis; <i> marks text in an alternate voice or mood (a foreign phrase, a term, a thought) with no emphasis.
When should I use the i element?
For italic text that is set apart but not emphasized — foreign words, technical terms on first use, taxonomic names, or a character's thoughts.
Is the i element deprecated?
No. HTML5 redefined it to mean "text in an alternate voice or mood", so it remains valid and meaningful.
How do I make italic text without semantics?
Use the CSS font-style: italic declaration on the element you want italicized.