References

Beginner-friendly references for web development, with live, editable examples.

The HTML <u> tag

Element All modern browsers Updated
Quick answer

The HTML <u> element marks text with an unarticulated, non-textual annotation — such as a misspelled word or a proper name in certain scripts — shown underlined. Do not use it for general underlining, which is easily mistaken for a link.

Overview

The <u> element represents a span with an unarticulated, non-textual annotation conveyed by underlining. Its legitimate uses are narrow: marking a misspelled word (the way a spell-checker underlines it), or indicating a proper noun in some East Asian text.

It is not for emphasis or styling. The big caution is that underlined text reads as a link to most users, so a decorative <u> can be genuinely confusing.

For meaning, use <em> or <strong>; for a purely visual underline, use the CSS text-decoration: underline — and even then, consider whether the underline will be mistaken for a link.

Syntax

<p>A <u>mispelled</u> word.</p>

Example

Live example
<p>The word <u style="text-decoration:underline wavy red;">recieve</u> is misspelled.</p>

Best practices

  • Reserve <u> for non-textual annotations like a spelling error or a proper noun in CJK text.
  • Avoid it for decoration — underlined text is easily mistaken for a link.
  • For emphasis or importance, use <em> or <strong>.
  • For a purely visual underline, use the CSS text-decoration: underline.

Frequently asked questions

What is the u element for?
For a span carrying a non-textual annotation shown by underlining — such as a misspelling or a proper noun in some East Asian scripts.
Should I use u to underline text?
Generally no. Underlined text looks like a link. Use the CSS text-decoration: underline for decoration, and reserve <u> for its specific annotation meaning.
Is the u element deprecated?
No. HTML5 redefined it with a specific meaning rather than "just underline", so it is valid for that purpose.
How do I emphasize text instead of underlining it?
Use <em> for emphasis or <strong> for importance.