Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <u> tags


May 05, 2021 HTML Reference Manual


Table of contents


HTML and u.gt. tags

The label can be used to underscore the text within the label, refer to the following example:

Underline the text with the hashtag:

<p>This is a <u>parragraph</u>.</p>

Try it out . . .

Browser support

HTML <u> tags HTML <u> tags HTML <u> tags HTML <u> tags HTML <u> tags

All major browsers support the hashtag.


Label definition and instructions for use

Labels define text that is different from regular text styles, such as misspelled words or proprietary nouns in Chinese.


Tips and comments

Tip: Try to avoid underlining the text with slt;u; and users will confuse it with a hyperlink.

Note: The HTML5 specification recommends that developers use other elements as much as possible to replace the elements.


The difference between HTML 4.01 and HTML5

In HTML, the element is discarded (the element is used to define underscores).

Html5 redefines the element, which defines text that is different from the regular text style, like misspelled words or proprietary nouns in Chinese.


Global properties

The label supports the global properties of HTML.


The event property

The tag supports the event properties of HTML.