HTML <u> tag

Use of <u> tag

The <u> tag is used to define underlined texts. It simply underlines the texts, it does not carry any important meaning. It has a special use on the illustration and finding out of misspelled words or terms.
The <u> tag was depreciated in HTML4,01 but restored in HTML5. It is better to use <span> tag with CSS properties instead of using <u> tag to style the texts rather to be underline only. (see example)
Type: Inline Element

Example of <u> tag

<u> Underlined texts </u>

Supported Browsers

Tag Chrome browser Internet explorer browser Firefox browser Safari browser Opera browser
<u> Yes Yes Yes Yes Yes

Full Code Example

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p> <u> The whole texts will be underlined. </u> </p>
</body>
</html>

Output

The whole texts will be underlined.

Underlined texts using CSS properties

<!DOCTYPE html>
<html>
<head>
<style>
    span{
    text-decoration: underline;
    }
</style>
</head>
<body>
<span> The whole texts will be underlined. </span>
</body>
</html>