html U Tag

In the html <u> tag is used to specify underline text or paragraph. if you need underline any word or sentence to put between opening <u> tag and closing </u> tag.

In the u tag standard attributes are class, lang, dir, id, style and title and events attributes are onclick, onmousemove, ondblclick ,onmouseout, onmousedown, onmouseover, onkeydown, onmouseup, onkeypress and onkeyup.

Syntax:

<u> --- </u>

Example Code

<u>Sachin Tendulkar</u> is greatest batsmen in the history of cricket.

Out Put:



Sachin Tendulkar is greatest batsmen in the history of cricket.

In the above example <u> tag has been added to Sachin Tendulkar word.





Content