HTML <u> tag
Definition and Usage
The <u> tag defines underlined text.
Differences Between HTML and XHTML
The u element was deprecated in HTML 4.01.
The u element is not supported in XHTML 1.0 Strict DTD.
Tips and Notes
Tip: Do not underline text - a user confuses it with a hyperlink!!
Example
| Source |
Output |
| A new version is <u>now available!</u> |
A new version is now available! |
Standard Attributes
| id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard
Attributes.
Event Attributes
| onclick, ondblclick, onmousedown,
onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown,
onkeyup |
For a full description, go to Event Attributes.
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
|
|