<dl compact><dt><dd>

Browser
  • IE
Type

The compact attribute of the DL element creates a compact definition list.


<dl compact>
<dt>definition term</dt>
<dd>definition description</dd>
</dl>

Attribute Value Explanation
compact compact compact definition list
(HTML : compact | XHTML : compact="compact")

The use of this attribute is deprecated.

Example


<dl>
<dt>CGI</dt>
<dd>Common Gateway Interface</dd>
<dt>SSI</dt>
<dd>Server Side Include</dd>
<dt>HTML</dt>
<dd>Hypertext Markup Language</dd>
</dl>

<dl compact>
<dt>CGI</dt>
<dd>Common Gateway Interface</dd>
<dt>SSI</dt>
<dd>Server Side Include</dd>
<dt>HTML</dt>
<dd>Hypertext Markup Language</dd>
</dl>

Output
CGI
Common Gateway Interface
SSI
Server Side Include
HTML
Hypertext Markup Language
CGI
Common Gateway Interface
SSI
Server Side Include
HTML
Hypertext Markup Language