# `<em>`

> The `<em>` HTML element defines text with emphasized stress, typically rendered by browsers in italics.

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

The element that emphasizes text by typically rendering it in italics. It indicates that the text has greater importance or should be stressed and can affect how screen readers interpret the content.

- Topic: Semantics
- 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>
  I <i>did</i> lock the door.
</p>
```

Right:

```html
<p>
  I <em>did</em> lock the door.
</p>
```

`<em>` marks stress that changes the meaning of the sentence; `<i>` is for alternate voice like terms or names.

## Common mistakes

- Using `<em>` for book titles or foreign words, which belong in `<cite>` or `<i>`.
- Using `<i>` for icon fonts and confusing it with emphasis.

## Interview questions

### Is `<em>` always italic?

By default browsers show it in italics, but CSS can style it any way.

### When should I use `<em>` instead of `<strong>`?

Use `<em>` for stress that changes meaning and `<strong>` for importance, seriousness or urgency.

## Related cards

- [`<i>`](https://wonderium.dev/html/i.md)
- [`<strong>`](https://wonderium.dev/html/strong.md)
- [`<cite>`](https://wonderium.dev/html/cite.md)
- [emphasis](https://wonderium.dev/a11y/emphasis.md)

---

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