Example Use of the compact attribute in an ordered HTML list: <ol compact="compact"> <li>Coffee</li...
Example
Use of the compact attribute in an ordered HTML list:<ol compact="compact"> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol> |
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%">
Syntax
<ol compact="value"> |
Attribute Values
Value | Description |
---|---|
compact | Specifies that the list should render smaller than normal |