Underline a misspelled word with the <u> tag:
The <u> tag represents some text that should be stylistically different from normal text, such as misspelled words or proper nouns in Chinese.
Element | |||||
---|---|---|---|---|---|
<u> | Yes | Yes | Yes | Yes | Yes |
Tip: Avoid using the <u> element where it could be confused for a hyperlink.
Note: The HTML 5 specification reminds developers that other elements are almost always more appropriate than <u>.
The <u> element was deprecated in HTML 4.01. (the <u> element was used to define underlined text).
The <u> element is redefined in HTML5, to represent text that should be stylistically different from normal text, such as misspelled words or proper nouns in Chinese.
The <u> tag also supports the Global Attributes in HTML.
The <u> tag also supports the Event Attributes in HTML.
HTML tutorial: HTML Text Formatting
HTML DOM reference: Underline Object
Most browsers will display the <u> element with the following default values: