Underline text with the <u> tag:
![]()
The <u> tag is supported in all major browsers.
The <u> element is deprecated.
The <u> tag defines underlined text.
Tip: Do not underline text! A user can confuse it with a hyperlink!
NONE
DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
The <u> tag supports the following standard attributes:
| Attribute | Value | Description | DTD |
|---|---|---|---|
| class | classname | Specifies a classname for an element | TF |
| dir | rtl ltr |
Specifies the text direction for the content in an element | TF |
| id | id | Specifies a unique id for an element | TF |
| lang | language_code | Specifies a language code for the content in an element | TF |
| style | style_definition | Specifies an inline style for an element | TF |
| title | text | Specifies extra information about an element | TF |
More information about Standard Attributes.
The <u> tag supports the following event attributes:
| Attribute | Value | Description | DTD |
|---|---|---|---|
| onclick | script | Script to be run on a mouse click | TF |
| ondblclick | script | Script to be run on a mouse double-click | TF |
| onmousedown | script | Script to be run when mouse button is pressed | TF |
| onmousemove | script | Script to be run when mouse pointer moves | TF |
| onmouseout | script | Script to be run when mouse pointer moves out of an element | TF |
| onmouseover | script | Script to be run when mouse pointer moves over an element | TF |
| onmouseup | script | Script to be run when mouse button is released | TF |
| onkeydown | script | Script to be run when a key is pressed | TF |
| onkeypress | script | Script to be run when a key is pressed and released | TF |
| onkeyup | script | Script to be run when a key is released | TF |
More information about Event Attributes.
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The CSS Certificate documents your knowledge of advanced CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $3.98 Unlimited Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| Download XML Editor |
| FREE Website BUILDER |
| Best Website Templates Top CSS Templates |
| CREATE HTML Websites |
| EASY WEBSITE BUILDER |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|