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>
Note/Warning/Danger/Info/Success This tag was deprecated in HTML4.01 but reintroduced HTML5.
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
Related Tags
<span>, <strong> & <b> tags.