0 out of 6 rated this helpful - Rate this topic

dl element | dl object

[This documentation is preliminary and is subject to change.]

Denotes a definition list.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5HTML 4.01 Specification, Section 10.3

Standards information

HTML information

Closing Tagrequired
CSS Displayblock

DOM Information

Inheritance Hierarchy

 Node
  Element
   HTMLElement
     dl

Remarks

Examples

This example uses the DL element with the DD and DT elements to create a definition list.


<DL>
<DT>Cat
<DD>A small domesticated mammal.
<DT>Lizard
<DD>A reptile generally found in dry areas.
</DL>

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
anomaly - stacked DL - mis-inherits - HTML

1. MSIE 6/7 render deletes /DD-, /DT-closures, (except the last before /DL)...!

2. Whence, DL stacks improperly in MSIE 6/7 HTML:-- ie. DL enclosed in DL takes the DL-DD|DT-margin/padding even if closed /DD|/DT...!

3. InnerHTML can be replaced to recover /DD-, /DT-closures, but render tends to collapse.

(contenteditable does-not have these anomalies; but other reasons to retain closures.)

4. MSIE-8=7 (and affects MSIE-6) dislocates the pointer when Clicked right-of DL-firstchild text.