HTML U tag

Example

Underline text with the <u> tag:
<p>Do not <u>underline</u> text if it is not a hyperlink!</p>


Definition and Usage

The <u> tag defines underlined text.

Browser Support


The <u> tag is supported in all major browsers.

Differences Between HTML and XHTML

The u element was deprecated in HTML 4.01, and is not supported in XHTML 1.0 Strict DTD.

Tips and Notes

Tip: Do not underline text! A user confuses it with a hyperlink!!


Standard Attributes

id, class, title, style, dir, lang, xml:lang
For a full description, go to StandardAttributes.

Event Attributes

onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup
For a full description, go to Event Attributes.
Share this article :
 
Copyright © 2012. Best Online Tutorials | Source codes | Programming Languages - All Rights Reserved