Latest

recent

HTML Menu compact attribute

Example

Use of the compact attribute in a menu list:
<menu compact="compact">
  <li>html</li>
  <li>xhtml</li>
  <li>css</li>
</menu>

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 menu element was deprecated in HTML 4.01, and is not supported in XHTML 1.0 Strict DTD. Look at ordered (<ol>) and unordered (<ul>) HTML lists instead.

Syntax

<menu compact="value">

Attribute Values

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