<menu>

Example

  • Usage

    <menu type="toolbar">
      <li><button id="cut">Cut</button></li>
      <li><button id="copy">Copy</button></li>
      <li><button id="paste">Paste</button></li>
    </menu>

    Description

    The <menu> element is designed to be the interactive equivalent to the <ul> element. It represents a list of actions a user could take as part of an application.

    The original goal of <menu> was quite far-reaching. In addition to toolbar there was also a context type, which included values inside the context menu (also known as the right-click menu). More recently, plans were scaled back and this is no longer part of the specification.

    Now <menu> is more of a semantic tool. The implementation of the interface is left up to the developer. For example, nested <menu> elements could be used to simulate native menu bar nesting.