# `<u>`

> The `<u>` HTML element represents text that should be stylistically underlined.

## Should I use the u tag to underline text in HTML?

The element that renders text with an underline. It's often used to indicate misspelled words, proper names in Chinese text or to draw attention to specific content.

- 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>
  This is <u>very</u> important.
</p>
```

Right:

```html
<p>
  This is <em>very</em> important.
</p>
```

Emphasis needs `<em>`, and underlined text looks like a link and confuses users.

## Common mistakes

- Using `<u>` for emphasis, so users try to click it as a link.

## Key points

- `<u>` marks a non-textual annotation, like a spelling error mark, not emphasis.
- Plain underline styling uses CSS `text-decoration`, not `<u>`.
- Underlined text that is not a link is styled so it does not look like a link.

## Interview questions

### Is the u tag deprecated?

No, `<u>` is valid HTML with a narrow meaning: an unarticulated annotation, such as marking a misspelled word.

### How do I underline text without u?

Use CSS `text-decoration: underline`, and tune it with `text-underline-offset` and `text-decoration-thickness`.

## Related cards

- [text-decoration](https://wonderium.dev/css/text-decoration.md)
- [`<em>`](https://wonderium.dev/html/em.md)
- [`<a>`](https://wonderium.dev/html/a.md)
- [text-underline-offset](https://wonderium.dev/css/text-underline-offset.md)

---

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