HTML <u> Tag


The <u> HTML tag, short for "underline," is a deprecated HTML element used to apply underlining to text within a web page. While it was commonly used in the past to emphasize or highlight text, it is no longer considered a best practice in modern web development. Instead, CSS (Cascading Style Sheets) is now the preferred method for controlling the visual presentation of text, including underlining. Developers typically use CSS properties like 'text-decoration' to apply underlines to specific text elements, allowing for more flexibility and control over styling while separating content from presentation in accordance with web standards.


Permitted Parents
Any element that accepts phrasing content
Inline and text
Start/End Tags
Start tag: required, End tag: required


This is an example of <u>underlined</u> text.



Global Attributes

The <u> tag also supports the Global Attributes in HTML5

Event Attributes

The <u> tag also supports the Event Attributes in HTML5

Browser Support

The following table will show you the current browser support for the HTML <u> tag.

Edge Chrome Firefox Opera Safari
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview

Last updated by CSSPortal on: 30th September 2023