u | underline HTML

HTML <u> Tag

To specify the span of inline text with a non-textual annotation the HTML <u> tag is used. A solid underlined text is displayed in the output. The HTML <u> tag was deprecated in HTML 4.0, but it was redefined in HTML5 to define a stylistically different text.

Example:

<!DOCTYPE html>
<html>
<body>
<p>Hello <u>World</u>!!</p>
</body>
</html>

Explanation:

In the above example, we underlined a part of the text using the HTML <u> tag.

Global Attributes:

The HTML Global attributes are supported by the HTML <u> tag.

Event Attributes:

The HTML Event attributes are supported by the HTML <u> tag.

Supporting Browser:

Chrome, IE, Firefox, Opera, and Safari.

Please follow and like us:
Content Protection by DMCA.com