Widely availableSupported across all major browsers. Safe to use in production.

Overview

The <u> HTML element makes non-textual annotations, styling text as underlined by default.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
1
12
1
1
18
1
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Notes 1 item(s)
Implementation note
  • Before Firefox 4, this element implemented the `HTMLSpanElement` interface instead of the standard `HTMLElement` interface.

Syntax

HTML
<p>There is <u>a spelling mistake</u> in this text.</p>
<p>Chinese proper noun: <u>Wang Xiaoming</u></p>

Live demo

spellmis.

U element in spellmis or errorcharacter to bottomline pullpattern.

PreviewFullscreen

name. m-k

Chinese. Text in name to bottomline pullpractice recurrent.

PreviewFullscreen

U and other. decoration. comparison

u, ins, text-decoration Difference Comparison.

PreviewFullscreen

Use cases

  • Using <u>

    The <u> HTML element makes non-textual annotations, styling text as underlined by default.

Cautions

  • May not be supported in older browsers.

Accessibility

  • Verify how this element is announced by screen readers.

Powered by web-features