<u> tag

HTML <u> tag

In HTML4.01, the  <u> tag was used to underline a text.

Later, it was deprecated in HTML4.

It was obsolete in HTML5 also but later reintroduced with another specific purpose to check the spelling mistake or misspell texts.

Syntax:
<u>text…</u>

Example

<p>Only I can <u>change my life.</u> No one can do it for me.</p>

CSS Default Value

text-decoration: underline; 

How Browser will display

INLINE.

Difference between HTML4.01, XHTML and HTML5

HTML4 XHTML HTML5
Deprecated in HTML4.01 NA Reintroduced in HTML5

Attributes used with <u> tag

NONE

Global Attributes

The <u> tag supports Global attributes.

Event Attributes

The <u> tag supports Event attributes.

Supporting Browsers

supporting-browsers for tags

Related Tags

<span>, <strong><b> tags.

Tutorials for all brains!