Advertisement

HTML <u> tag

Examples

Use <u> tag underlines the text:

<p>如果文本不是超链接,就不要<u>对其使用下划线</u>。</p>

Try it yourself

Browser Support

IE Firefox Chrome Safari Opera

All browsers support <u> tag.

Definition and Usage

<U> tag to define the underlined text.

Differences between HTML and XHTML

In HTML 4.01, u element is not to be recommended.

In XHTML 1.0 Strict DTD in, u element is not supported.

Tips and Notes:

Note: Try to avoid to underline the text - which will confuse the user as a hyperlink!

Global Properties

<u> tag supports HTML in the global properties .

Event Properties

<u> tag supports HTML in the event properties .