HTML & CSS Wiki
Advertisement

This deprecated, presentational element is not recommended. Authors should generally find an alternative way to accomplish the same task while adhering to all best practices, or simply do without it if it is unimportant.



The HTML <u></u> element underlines all contained text. As of HTML 4.0 it is deprecated in favor of the CSS text-decoration:underline; property in order to separate presentation from content.

Attributes[]

Global Attributes

See Global HTML Attributes.


To apply this element in an HTML document, use:

<u>Text to be underlined.</u>

This will generate: Text to be underlined.

See Also[]

External links[]

Advertisement