HTML Tag







googletag.cmd.push(function() { googletag.display('div-gpt-ad-1422003450156-2'); });




HTML <u> Tag



Previous
Complete HTML Reference
Next



Example


Underline a misspelled word with the <u> tag:



<p>This is a <u>parragraph</u>.</p>

Try it Yourself »



Definition and Usage


The <u> tag represents some text that should be stylistically different
from normal text, such as misspelled words or proper nouns in Chinese.




Browser Support



















Element
<u> Yes Yes Yes Yes Yes



Tips and Notes


Tip: Avoid using the <u> element where it could be confused for a hyperlink.


Note: The HTML 5 specification reminds developers that other elements
are almost always more appropriate than <u>.




Differences Between HTML 4.01 and HTML5


The <u> element was deprecated
in HTML 4.01.
(the <u> element was used to define underlined text).


The <u> element is redefined in HTML5, to represent text that
should be stylistically different from normal text, such as misspelled words or
proper nouns in Chinese.









googletag.cmd.push(function() { googletag.display('div-gpt-ad-1493883843099-0'); });






Global Attributes


The <u> tag also supports the Global Attributes in HTML.




Event Attributes


The <u> tag also supports the Event Attributes in HTML.




Related Pages


HTML tutorial: HTML Text Formatting


HTML DOM reference: Underline Object




Default CSS Settings


Most browsers will display the <u> element with the following default values:



Example



u {
    text-decoration: underline;
}

Try it Yourself »




Previous
Complete HTML Reference
Next

Popular posts from this blog

Chat program with C++ and SFML

Function to Return a JSON Like Objects Using VBA Collections and Arrays

Will my employers contract hold up in court?