HTML <i> Tag

Beginner
5 min read
Updated: Oct 2026
4 examples
Live preview

Definition and Usage

The <i> element marks a span of text set off from normal prose — idiomatic text, technical terms, taxonomic names, thoughts, or another voice or mood. Browsers usually show it in italics (the historical reason for the name).

For stress emphasis use <em>. For pure decoration use CSS font-style. Prefer <cite> for work titles and <dfn> for the defining instance of a term.

Baseline · Widely available.

Not deprecated. Stable across browsers since about July 2015 (and long before as HTML italic markup).

Historical note.

Once a presentational italic tag. Today it is semantic: alternate voice / idiomatic offset — not a generic “make it italic” switch.

Do not use for stress emphasis.

Choose <em> when stress changes meaning. Do not confuse <i> with <mark> (relevance) or <b> (bring attention).

HTML Syntax

syntax.html
<i> text</i>

Both start and end tags are required. Content is phrasing content.

Attributes

<i> has no element-specific attributes. It uses global attributes; these are the ones you will reach for most often:

AttributeDescriptionTry it
(none specific)No tag-only attributes — meaning comes from the element itselfTry it
langLanguage of a foreign / idiomatic phrase (recommended with other-language text)Try it
classHook for CSS or scripts (e.g. term, taxon)Try it

Global Attributes

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

Live Preview

Pick a common <i> use and see how the idiomatic span sits in a sentence.

A real <i>. Apply a preset to swap the idiomatic span.

Idiomatic span

I looked at it and thought This can't be real!

<i>This can't be real!</i>

HTML Examples

Short, copy-ready snippets. Use Try It Yourself for a live editor.

Example 1 — Alternate Voice or Thought

Mark an inner thought or shift in voice without stress emphasis.

HTML
<p>
  I looked at it and thought
  <i>This can't be real!</i>
</p>
Try It Yourself

How It Works

  1. Write the surrounding sentence as normal text.
  2. Wrap the thought / alternate voice in <i>…</i>.
  3. Leave stress alone — this is mood/voice, not <em>.
  4. Browsers typically italicize the span by default.

Example 2 — Technical or Taxonomic Term

Offset a technical word or scientific name from the surrounding prose.

HTML
<p>
  The term <i>bandwidth</i> describes how much
  information can pass through a connection over time.
</p>
<p>
  <i>Musa</i> includes bananas and plantains.
</p>
Try It Yourself

How It Works

  1. Identify the term that is set off from normal reading.
  2. Wrap only that term with <i>.
  3. For a definition instance, prefer <dfn> instead.
  4. Optional class helps style technical vs taxonomic uses differently.

Example 3 — Foreign Phrase with lang

Mark an idiomatic phrase from another language and declare that language.

HTML
<p>
  The Latin phrase
  <i lang="la">Veni, vidi, vici</i>
  is often mentioned in music, art, and literature.
</p>
Try It Yourself

How It Works

  1. Wrap the foreign phrase in <i>.
  2. Add lang with the language code (here la for Latin).
  3. Keep the rest of the sentence in the page language.
  4. Assistive tech and spellcheck can treat the span correctly when lang is set.

Example 4 — i vs em

Same italic look by default — different meaning. Pick by intent.

HTML
<p>
  Technical term:
  <i>latency</i>.
</p>
<p>
  Stress emphasis:
  I <em>really</em> mean it.
</p>
Try It Yourself

How It Works

  1. Use <i> for idiomatic / alternate-voice offset.
  2. Use <em> when stress changes how the sentence is read.
  3. Do not choose by looks alone — both may appear italic.
  4. Screen readers treat emphasis from <em> differently from a generic <i> span.

Edge Cases & Pitfalls

Most <i> mistakes come from treating it as a CSS italic shortcut.

semantics

Not a substitute for <em>

Stress emphasis belongs on <em>, not <i>.

style

Pure decoration → CSS

If italics are only a design choice, use font-style: italic.

titles

Work titles → <cite>

Books, films, and songs are better marked with <cite>.

definitions

Defining instance → <dfn>

Use <dfn> when introducing a term’s definition.

lang

Add lang on foreign phrases

Helps assistive technology and tools treat the phrase in the correct language.

Browser Support

The <i> element is core HTML phrasing content in every browser. It is not a Node.js, Deno, or Bun API.

✓ Baseline · Widely available

<i>

Widely available since about July 2015 (and earlier as HTML italic). Chrome, Firefox, Safari, Edge, and Opera all support it. Default italic styling can still be overridden by CSS.

98% Global support (approx.)
Google Chrome All
Full support
Mozilla Firefox All
Full support
Apple Safari All
Full support
Microsoft Edge All
Full support
Opera All
Full support
Samsung Internet All
Full support
Internet Explorer All
Supported
<i> Widely supported

Bottom line: Safe to use everywhere. Choose em, cite, dfn, or CSS when the meaning is stress, a work title, a definition, or pure style.

Key Takeaways

  • Role: <i> marks idiomatic / alternate-voice text — not stress emphasis.
  • Use cases: terms, taxonomy, foreign phrases, thoughts, ship names.
  • Alternatives: <em> for stress, <cite> / <dfn> when they fit, CSS for decoration.
  • Practice: add lang on foreign phrases.

One line: use <i> to offset idiomatic text, not as a generic italic style tag.

Default CSS Settings

User-agent stylesheets typically italicize the element. Exact rules can vary slightly by browser:

default.css
i {
  font-style: italic;
}

You may override this with CSS. Changing the look does not change the element’s meaning.

Frequently Asked Questions

The i element marks text set off from normal prose for a different voice or quality — idiomatic or foreign phrases, technical terms, taxonomic names, thoughts, or ship names. Browsers usually render it in italics.
Both often look italic. em marks stress emphasis that can change meaning. i marks alternate voice or idiomatic offset without that stress.
Use CSS font-style: italic when italics are only decoration. Use i when the offset has meaning (foreign phrase, term, taxonomy) and you want a semantic hook.
No. i supports only the global HTML attributes. Add lang for foreign phrases and class when you need a styling or scripting hook.
No. It is still valid. Its meaning changed from a pure presentational italic tag to idiomatic / alternate-voice text.
Use cite for the title of a work (book, song, film). Use dfn for the defining instance of a term. Use i for the remaining idiomatic or alternate-voice cases.

Next: iframe

Embed another HTML page inline with the iframe element.

iframe tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

10 people found this page helpful