<u>
HTML <u> Tag
Instance
<!DOCTYPE html> <html> <body> <p>This is a <u>parragraph</u>.</p> </body> </html>
Run Example»
Click the "Run Instance" button to view the online instance
Browser support
All major browsers support< u> tag.
Tag definition and usage instructions
<u> Tags define text that is different from the regular text style, such as misspelled words or proper nouns in Chinese.
Tips and Notes
Tips: Please try to avoid using <u> to underline text, as users will confuse it as a hyperlink.
Note: The HTML5 specification recommends that developers try to use other elements to replace the <u> element.
Differences between HTML 4.01 and HTML5
In HTML, the <u> element is deprecated (the <u> element is used to define an underscore).
The <u> element has been redefined in HTML5, which defines text that is different from the regular text style, such as misspelled words or proper nouns in Chinese.
Global attributes
<u> tag supports HTML global attributes.
Event attributes
<u> tag supports HTML event attributes.