Easy Tutorial
❮ Att Del Datetime Att Input Multiple ❯

HTML <u> Tag

Example

Use the <u> tag to underline text:


Browser Support

All major browsers support the <u> tag.


Tag Definition and Usage

The <u> tag represents text that is stylistically different from normal text, such as misspelled words or proper nouns in Chinese.


Tips and Notes

Tip: Avoid using <u> to underline text as it may be confused with hyperlinks.

Note: The HTML5 specification advises developers to use other elements instead of <u> when possible.


Differences Between HTML 4.01 and HTML5

In HTML, the <u> element was deprecated (<u> was used to define underlined text).

In HTML5, the <u> element has been redefined to represent text that is stylistically different from normal text, such as misspelled words or proper nouns in Chinese.


Global Attributes

The <u> tag supports HTML's global attributes.


Event Attributes

The <u> tag supports HTML's event attributes.

❮ Att Del Datetime Att Input Multiple ❯