HTML and CSS Reference
In-Depth Information
• This element was initially introduced by Netscape and, although it has been poorly
documented, has been formalized for HTML5. There is strong indication that some
browser vendors like Microsoft may not support this element or support it only as a
dummy element.
<label> (Form Control Label)
This element is used to relate descriptions to form controls.
Standard Syntax
<label
accesskey="key"
class="class name(s)"
dir="ltr | rtl"
for="id of form field"
id="unique alphanumeric identifier"
lang="language code"
style="style information"
title="advisory text">
</label>
Attributes Introduced by HTML5
accesskey="spaced list of accelerator key(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"
draggable="true | false | auto"
hidden="hidden"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
itemscope="itemscope"
itemtype="microdata type in URL format"
spellcheck="true | false"
tabindex="number"
Attributes Defined by Internet Explorer
contenteditable="false | true | inherit" (5.5)
datafld="column name" (4)
dataformatas="html | text" (4)
datasrc="data source id" (4)
disabled="false | true" (5.5)
hidefocus="true | false" (5.5)
language="javascript | jscript | vbs | vbscript" (4)
tabindex="number" (5.5)
unselectable="on | off" (5.5)
HTML 4 Event Attributes
onblur, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup,
onmousedown, onmousemove, onmouseout, onmouseover, onmouseup
Search WWH ::




Custom Search