W3-Video WEB Tutorials

w3-video.com is a Free eLearning Website with over 500 video tutorials on HTML5, XAMPP, .htaccess, Firefox, Notepad++

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++


u ... ⁄u


Share it

u intro u browser display u parents - children u syntax

HTML5 u element

The u element allows you to mark up text offset from its surrounding content: e.g. misspelled text. »video

About u

Display & support u

Firefox iconChrome iconIE iconOpera iconSafari icon

Parents, children u

Attributes u

Warning

The default browser display of both u and a elements is the same: underlined, which may lead to confusion → avoid the usage of u element in such cases.

Syntax u

1<u> ... </u> »video

Attributes and Values u (comma separated)

<uattribute="attribute_value(s)"> Video Examples
1. specific attributes
All Specific Attributes
2. global attributes
1.accesskey=keyboard key»img<u accesskey="h"> ... </u>
2.class=class name»html »img<u class="class_name"> ... </u>
3.contenteditable="",  , true, false »html<u contenteditable="true"> ... </u>
4.contextmenu=menu id value»html<u contextmenu="menu_id_value"> ... </u>
5.data-*= value -<u data-http-error="404"> ... </u>
6.dir=ltr, rtl, auto»html<u dir="ltr"> ... </u>
7.draggable= true,  , false»img<u draggable="false"> ... </u>
8.dropzone= copy, move, link, string:, file: -<u dropzone="copy"> ... </u>
9.hidden= "",  , hidden»html »img<u hidden="hidden"> ... </u>
10.id=id name»html »img<u id="unique_id_name"> ... </u>
11.itemid= URL --
12.itemprop= string »link »a-
13.itemref= string --
14.itemscope= "",  , itemscope--
15.itemtype= absolute URL --
16.lang=language code »html »head»title »img<u lang="en"> ... </u>
17.spellcheck="",  , true, false»html<u spellcheck="true"> ... </u>
18.style=CSS property:value»html »img<u style="color:red"> ... </u>
19.tabindex= integer »img<u tabindex="3"> ... </u>
20.title=text»html »link»style »abbr»dfn
»img »meter
<u title="html page"> ... </u>
21.translate="", yes, no»html »img<u translate="yes"> ... </u>
All Global Attributes
3. global event attributes
1.onclick=script» list<element onclick="script" > ...
2.ondblclick=script» list<element ondblclick="script" > ...
All Event Attributes

Video demonstration u element

HTML5 u element: mark up offset text

min video details
00:00 video tutorial: u element
00:05 u element allows you to mark text offset from its surrounding content: e.g. like misspelled text
00:10 'com' instead of 'come'
00:12 let's mark this misspelled word properly using u element
00:25 browser display: this misspelled word is underlined

For more information about the u element, please see the specs: W3CWHATWG