This element is the definition list, and it is
used in conjunction with the <dt>
and <dd>
elements.
You can use the <dl>
element to contain multiple
definition terms(<dt>
) along
with definition descriptions(<dd>
).
<dl> |
Yes | Yes | Yes | Yes | Yes |
The <dl> tag supports the Global Attributes in HTML.
The <dl> tag supports the Event Attributes in HTML.
dl { display: block; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; }
A demo showing how to use <dl> tag.
<html>
<body>
<dl>
<dt><TABLE></dt>
<dd>an html element.</dd>
<dt>border-color</dt>
<dd>a style sheet property.</dd>
<dt>innerText</dt>
<dd>a JavaScript property.</dd>
<dt>cloneNode()</dt>
<dd>a JavaScript method.</dd>
</dl><!--from ww w . j av a 2 s . co m-->
</body>
</html>