HTML <u> tag

The <u> tag is used to underline text.

Type: Inline Element

Syntax of <u> tag

<u> Text </u>

Supported Browsers

Tag Chrome Internet Explorer Firefox Safari Opera Mini
<u> Yes Yes Yes Yes 1Yes

Full code example

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
 <u> Underlined sentence. </u>
</p>
</body>
</html>
Run The code »

Output on the browser

Underlined sentence.

More reference

The <u> tag was depreciated in HTML 4.01 but restored in HTML5. It simply underlines the text; doesn't carry any important meaning. To style the text, use <span> element with CSS properties. Hyperlinks, by default, are also underlined in all browsers, so avoid using using <u> tag unless it it has some specific purpose.

Underline text using <span> element

<span style="text-decoration: underline;">
  Underlined text
</span>

Default CSS property of <u> element

u {
  text-decoration:"underline;
}