HTML u tag

HTML <u> tag defines the underline text. It is used to underline the spelling mistakes in textual area.

Example


 <p> <u> Penguin </u> are flightless birds.</p>
 <p> <u> Bats </u> can fly. </p>

Try </>

Specific uses

There are many other cases where other elements are more appropriate instead of u element.

  • cite is for titles.

  • i (italic) is for ship names.

  • em (emphasize) should be used for emphatic stress.

  • b (bold) should be used for keywords.

  • mark is should be used highlight words in searching process.

underline text should not be confused with text link. Because text link is also underline.

Global Attributes

All the global attributes are applicable on u element.

Tag omission

Both starting and ending tags are necessary for u element.



Was this article helpful?

 

Email:

Message:

Get the newsletter