HTML <u> tag

When writing in HTML, the <u> tag is used to designate a section of text that should be underlined. It is useful in instances where you want to indicate a misspelled word or a proper name in Chinese. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.
The <u> tag should not be used solely for styling purposes; use CSS instead.
Example of <u> code
<p>This paragraph contains a <u>misspelt</u> word.</p>
Example result
This paragraph contains a misspelt word.
Attributes
Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <u> tag does not have any unique attributes, it does utilize all of the standard attributes.
Compatibility
Edge | Internet Explorer | Firefox | Safari | Opera | Chrome |
---|---|---|---|---|---|
All versions | All versions | All versions | All versions | All versions | All versions |
Block of text, Browser, Compatibility, Container tag, HTML b tag, HTML i tag, Web design terms