compact attribute’s purpose is to instruct the
browser to render the definition list into a smaller text block by
reducing the spacing between lines and/or reducing the default
This attribute is now deprecated, and is highly presentational in its nature. The desired visual effects can all be achieved with CSS and, as such, this attribute shouldn’t be used—it’s presented here for informational purposes only.
attribute is applied to a simple definition list in the example
<dl compact="compact"> <dt>Spam</dt> <dd>unsolicited email sent in the hope of increasing sales of some product, or simply for the purposes of annoying people</dd> <dt>Spammer</dt> <dd>someone who sends out spam email and therefore deserves to develop a nasty incurable disease of some kind</dd> <dt>Spam Filter</dt> <dd>a tool used in email to 'filter out' likely spam messages, usually placing them in a dedicated junk messages folder or similar</dd> </dl>
The only acceptable value for
Very poor support is provided for this attribute, but given that it’s a deprecated attribute whose effects can be achieved using CSS, this shouldn’t cause any problems.