<u>
The <u> HTML element represents a span of inline text which should be rendered in a way that indicates that it has a non-textual annotation. This is rendered by default as a single solid underline, but may be altered using CSS.
Warning: This element used to be called the "Underline" element in older versions of HTML, and is still sometimes misused in this way. To underline text, you should instead apply a style that includes the CSS text-decoration property set to underline.
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
Use cases
-
Using <u>
The <u> HTML element represents a span of inline text which should be rendered in a way that indicates that it has a non-textual annotation.
Cautions
- May not be supported in older browsers.
Accessibility
- Verify how this element is announced by screen readers.