THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML <menu> compact Attribute

HTML menu Tag Reference HTML <menu> tag

Example

Use of the compact attribute in a menu list:

<menu compact="compact">
  <li>html</li>
  <li>xhtml</li>
  <li>css</li>
</menu>

Try it Yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

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


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.


Compatibility Notes

The compact attribute of <menu> is not supported in HTML5.

Look at ordered (<ol>) and unordered (<ul>) HTML lists instead.


Syntax

<menu compact="compact">

Attribute Values

Value Description
compact Specifies that the list should render smaller than normal

HTML menu Tag Reference HTML <menu> tag

COLOR PICKER

colorpicker

SHARE THIS PAGE






Search w3schools.com:

Translate w3schools.com: