HTML OL compact attribute


Use of the compact attribute in an ordered HTML list:
<ol compact="compact">

Definition and Usage

The compact attribute specifies that the list should render smaller than normal, by reducing the space between lines and the indentation of the list.

Browser Support

Note: The compact attribute is not supported by any of the major browsers.

Compatibility Notes

The compact attribute of the ul element was deprecated in HTML 4.01, and is not supported in XHTML 1.0 Strict DTD.
Use CSS instead.
CSS syntax: <ol style="line-height: 80%">


<ol compact="value">

Attribute Values

Value Description
compact Specifies that the list should render smaller than normal
HTML OL compact attribute Reviewed by 1000sourcecodes on 21:53 Rating: 5
Powered by Blogger.