Skip to content
Tutorials Center
My learning

Topics

HTML Reference ยท Inline Text

The <i> element

Reference for the HTML <i> element: text in an alternate voice such as foreign phrases, terms and names, how it differs from <em>, and technical details.

The <i> element marks text in an alternate voice or mood: something set apart from the surrounding prose without being more important or stressed. Common cases are words from another language, technical or scientific terms, names of ships and vehicles, a character's thoughts, and idioms. Browsers display it in italics.

HTML
<p>The guide wished us <i lang="it">buon viaggio</i> and waved us off.</p>

Try it

Alternate voice

Attributes

This element has no attributes of its own. It accepts the global attributes. Add lang when the text is in another language, so screen readers pronounce it correctly and translation tools treat it properly.

Usage notes

  • <i> vs <em>. Use <em> when the italics carry spoken stress that changes the meaning. Use <i> when the text is just in a different kind of voice.
  • Better-fitting elements first. Titles of works go in <cite>, defined terms in <dfn>, variables in <var>.
  • Add a class. A class such as class="taxon" or class="vessel" records why the text is marked and keeps your styling flexible.
  • Icons. Some icon libraries use empty <i> elements for icons. That is a styling hack, not a meaning of <i>. If you do it, hide the icon from assistive technology with aria-hidden="true" and provide a text label.
  • Accessibility. Screen readers don't announce <i>; the lang attribute is what actually helps listeners.

Technical summary

Content categories Flow content, phrasing content, palpable content
Permitted content Phrasing content
Tag omission None; both the start and end tags are required
Permitted parents Any element that accepts phrasing content
Implicit ARIA role generic
DOM interface HTMLElement
Default display inline (italic)

Browser support

Supported in every browser.