Tag <u> HTML Reference

Example

Underline text with the <u> tag:

<p>Do not <u>underline</u> text if it is not a hyperlink</p>

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

1. Definition and Usage

The <u> element is deprecated.

The <u> tag defines underlined text.


2. Tips and Notes

Tip: Do not underline text. A user can confuse it with a hyperlink.


3. Differences Between HTML and XHTML

None


4. Standard Attributes

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

5. Event 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

Other HTML/XHTML tags:


Relative articles

Overflow CSS – About and How to use it in various conditions

Overflow CSS – About and How to use it in various conditions

Today I will tell you about CSS again. This is will property called ‘overflow’. This property already in CSS since second version (CSS2). All popular browsers like Firefox, IE, Safari, Opera etc supporting this property. I will tell about IE browsers in details a little after.

Overflow property determines the behavior of a block-type element in situations, where its contents exceeds its size. Overflow property can have five values. Each value defines two aspects of the generated element: whether to display the contents outside of the block itself and are we will have scrolling mechanism. If the value of the overflow property is auto, the browser displays the contents of the element according to its settings, plus – it should allow the user to scroll if the content does not fit in the container.
(more…)


Bottom Menu Builder (HTML5)
Bottom Menu Builder (HTML5)

Bottom Menu Builder (HTML5)

Bottom navigation website menu. I am sure that you have seen it many times (at different websites). As usual, this is three-four columns menu with different links. Today I would like to show you a builder, which you can use to build that bottom menu. Main purpose of this builder – prepare static HTML code (as cache file) for embedding into bottom of your website. If you like that idea, you are welcome to play with it, and I will tell you about creation of nice user friendly menu builder. This tutorial is separated into 2 parts, today I will tell you about first side: user interface with drag and drop possibility.
(more…)