HTML <u>Tag
Examples
Use the <u> tag to add an underline to the text:
<p>This is a <u>parragraph</u>.</p>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the <u> tag.
Definition and Usage
The <u> tag defines text that is different in style from regular text, such as misspelled words or proper nouns in Chinese.
Tips and Notes
Tip:Try to avoid using <u> to underline text, as users may confuse it with a hyperlink.
Note:The HTML5 specification recommends that developers try to use other elements instead of the <u> element.
Differences Between HTML 4.01 and HTML5
In HTML, the <u> elementwas deprecated(The <u> element was used to define underline).
In HTML5, the <u> element was redefined; it defines text that differs from the normal text style, such as misspelled words or proper nouns in Chinese.
Global Attributes
<u> tag supportsHTML global attributes。
Event Attributes
<u> tag supportsHTML event attributes。
Other Extensions