HTML <u> Tag Tutorial - Usage, Syntax,
Attributes and Example

calender-iconPublished: 11 May 2025

clock-icon5-min read





INTRODUCTION

According to standard Definition in HTML the <u> element is used for text to indicate it has a non-textual annotation. Let's break this definition to understand it in simple terms.

Annotating is the process of marking text with additional notes or comments and often include highlighting or underlining text to make it easier to understand. Students often highlight passages and use annotations to refer back to key phrases easily, or add margins to add their own thoughts, feelings, and emotions about a concept. The below image gives an example of annotating text.

text-annotation

annotation

In HTML a similar process is followed as this element is shown by browser as text with solid underline. It's used for text that should be stylistically offset from normal text for annotation purpose.

Common use cases are listed below.

  • Indicating spelling errors
  • Marking proper nouns - In some languages like Chinese, underlining a name (e.g., Li Ming) visually distinguishes it as a proper noun.
  • Any annotation
NOTE:

The <u> element should not be used to merely underline the text. Use the CSS text-decoration property with value set to underline if you want to underline any normal text.

Syntax:
<u> - TEXT - </u>

Example:

<p> 
This Text contains misspelled word <u>wihch</u> demonstrate use of U element.
</p>

Output:

This Text contains misspelled word wihch demonstrate use of U element.





Tag Omission

The HTML <u> element must have have both start tag and end tag.

ATTRIBUTES

The <u> element only has global attributes.

Frequently Asked Questions (FAQ)

What is the Difference Between HTML u Tag and HTML ins tag?
The HTML ins tag indicates that new text has been added to the webpage. While the HTML u element is used for text to indicate it is an annotation. Annotating is the process of marking text with notes or comments and include highlighting or underlining text. It is mostly used for spelling errors, applying name mark or proper name in chinese.