HTML and CSS Reference
In-Depth Information
Events Defined by Internet Explorer
onactivate, onbeforeactivate, onbeforecopy, onbeforecut, onbeforedeactivate,
onbeforeeditfocus, onbeforepaste, onblur, onclick, oncontextmenu,
oncontrolselect, oncopy, oncut, ondblclick, ondeactivate, ondrag,
ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop,
onfocus, onfocusin, onfocusout, onhelp, onkeydown, onkeypress, onkeyup,
onlosecapture, onmousedown, onmouseenter, onmouseleave, onmousemove,
onmouseout, onmouseover, onmouseup, onmousewheel, onmove, onmoveend,
onmovestart, onpaste, onpropertychange, onreadystatechange, onresize,
onresizeend, onresizestart, onselectstart, ontimeerror
Element-Specific Attribute
compact This attribute reduces the white space between list items.
Examples
<dl>
<dt> Cat </dt>
<dd> A domestic animal that likes fish. </dd>
<dt> Skunk </dt>
<dd> A wild animal that needs deodorant. </dd>
</dl>
<!-- Terms definitions don't have to pair match -->
<dl>
<dt> Cat </dt>
<dt> Fritz </dt>
<dt> Sylvester </dt>
<dd> A domestic animal that likes fish. </dd>
<dt> Skunk </dt>
<dt> Pepe Le Pew </dt>
<dd> A wild animal that needs deodorant. </dd>
<dt> Tasmanian Devil </dt>
</dl>
Compatibility
HTML 2, 3.2, 4, 4.01, 5
XHTML 1.0, 1.1, Basic
Firefox 1+, Internet Explorer 2+,
Netscape 1+, Opera 2.1+, Safari 1+
Notes
• The items in the list comprise two parts: the term, indicated by the dt element, and
its definition, indicated by the dd element. However, there is no requirement to
match these elements, alternate them, or anything else, at least syntax-wise.
• Some page designers might use a <dl> tag or <ul> tag to create text indention.
Although this is a common practice on the Web, it is not advisable because it
confuses the meaning of the element by making it a physical layout device rather
than a list. A CSS property like margin or position should be used instead.
Search WWH ::




Custom Search