# `<i>`

> The `<i>` HTML element defines text that is stylistically italicized without conveying any extra importance or emphasis.

## What is the difference between i and em in HTML?

The element that typically renders text in italics. It's often used to indicate a change in tone or to represent a different voice, such as a term in another language, a title or a technical term.

- Topic: Formatting
- Type: tag
- Browser support: Chrome 1+, Chrome Android 18+, Edge 12+, Firefox 1+, Firefox Android 4+, Safari 4+, Safari iOS 3.2+

## Example

Wrong:

```html
<p>
  The phrase <i>déjà vu</i> comes from French.
</p>
```

Right:

```html
<p>
  The phrase <i lang="fr">déjà vu</i> comes from French.
</p>
```

The `lang` attribute lets screen readers pronounce the French phrase correctly.

## Common mistakes

- Using `<i>` for icon fonts, which leaves an empty element with no meaning.
- Using `<i>` for stressed words that need `<em>`.

## Key points

- `<i>` is used for an alternate voice, like terms, foreign words or ship names, not for emphasis.
- Foreign phrases inside `<i>` have a `lang` attribute.
- Icons use a `<span>` or `<svg>`, not an empty `<i>` element.

## Interview questions

### Is it okay to use i for icons?

It works but has no meaning. Use a `<span>` or `<svg>` with `aria-hidden='true'` for decorative icons.

### How do I make text italic without adding meaning?

Use CSS `font-style: italic` on any element.

## Related cards

- [`<em>`](https://wonderium.dev/html/em.md)
- [`<b>`](https://wonderium.dev/html/b.md)
- [\[lang\]](https://wonderium.dev/html/lang.md)
- [font-style](https://wonderium.dev/css/font-style.md)
- [emphasis](https://wonderium.dev/a11y/emphasis.md)

---

- Level: [HTML](https://wonderium.dev/html.md)
- HTML version: https://wonderium.dev/html/i
- Last updated: 2026-11-25
