HTML and CSS Reference
In-Depth Information
• HTML 2 and 3.2 support only the compact attribute for this element.
• For XHTML compatibility, the compact attribute must be expanded:
<dl compact="compact"> under the transitional form. It is deprecated under the
strict specification. In practice, regardless of whether it is indicated, the compact
attribute generally has no effect.
<dt> (Term in a Definition List or Caption in Figure or Details)
This element identifies a definition list term in a list of terms and definitions. Under
HTML5, the element is also used within <details> and <figure> tags to represent a
caption for content.
Standard Syntax
class="class name(s)"
dir="ltr | rtl"
id="unique alphanumeric identifier"
lang="language code"
style="style information"
title="advisory text">
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"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
itemtype="microdata type in URL format"
spellcheck="true | false"
Attributes Defined by Internet Explorer
accesskey="key" (5.5)
contenteditable="false | true | inherit" (5.5)
disabled="false | true" (5.5)
hidefocus="true | false" (5.5)
language="javascript | jscript | vbs | vbscript" (4)
nowrap="true | false" (5.5)
tabindex="number" (5.5)
unselectable="on | off" (5.5)
HTML 4 Event Attributes
onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown,
onmousemove, onmouseout, onmouseover, onmouseup
Search WWH ::

Custom Search