Computerhelp4all logo Articles AboutTopicsQuizzesComputer Questions & AnswersComputer Terms & DefinitionsActivitiesContact

What Is The HTML <u> Tag?

What Is The HTML <u> Tag?

Date First Published: 24th January 2024

Topic: Web Design & Development

Subtopic: Web Development

Article Type: Computer Terms & Definitions

Difficulty: Medium

Difficulty Level: 5/10

Learn about what the HTML <u> tag is in this article.

In HTML, the <u> tag is used to specify a section of text to be underlined. The text is styled differently from normal text to draw attention to it. By default, the text is underlined, but the style can be changed using CSS. This HTML tag is supported by all major web browsers.

This HTML tag was deprecated in HTML 4.01, but in HTML 5, it was redefined to represent text that should be displayed in a way that is different from the surrounding text. For example, the u tag can be used to identify misspelt words and proper names.

Note: Info Icon

Use the <u> tag to draw attention to specific text, not solely for styling purposes. To underline large amounts of text, use CSS.


Note: Info Icon

Avoid using the <u> element where it could be confused for a hyperlink.

Examples Of The <u> Tag

Below is an example of the <u> tag.

<p>This is a <u>misspelt</u> word</p>

This is a misspelt word


Feedback

  • Is there anything that you disagree with on this page?
  • Are there any spelling, grammatical, or punctuation errors on this page?
  • Are there any broken links or design errors on this page?

If so, it is important that you tell me as soon as possible on this page.


Comments