CSS Portal

HTML <u> Tag

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
<u>
HTML TagThis tag is supported by all modern browsers.
Updated 26th December 2025

Description

The <u> HTML tag is used to underline text in an HTML document. Traditionally, underlining was often associated with hyperlinks, but in modern HTML, <u> is intended to represent text that has a non-emphatic annotation, such as proper names in Chinese text, misspelled words, or stylistically distinct text that should be visually set apart. The underline is purely a visual presentation, and by default, browsers render the text with a solid line beneath it.

Unlike <em> or <strong>, which convey semantic emphasis or importance, <u> is not inherently semantic in meaning; it primarily signals a visual style. In modern web development, it’s generally recommended to use CSS for styling when the underline is purely decorative (e.g., text-decoration: underline;), reserving <u> for text that carries a specific semantic purpose beyond mere styling.

Example usage:

<p>This is a <u>highlighted term</u> in a sentence.</p>

In this example, the words “highlighted term” will appear underlined in the browser, distinguishing them from the rest of the text.

The <u> tag can be nested inside other inline elements like <span>, <strong>, or <em> to combine different text effects.

Properties

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

Example

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

Attributes

None

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 information will show you the current browser support for the HTML <u> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.

This tag is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee