Your Search Results

    <menu>

    This article is in need of a technical review.

    Warning: The content of this article may be out of date. This article differs from the latest specification which can be found at http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#menus

    Summary

    The HTML <menu> element represents an unordered list of menu choices, or commands.

    There is no limitation to the depth and nesting of lists defined with the <menu>, <ol> and <ul> elements.

    Usage note: The <menu> and <ul> both represent an unordered list of items. They differ in the way that the <ul> element only contains items to display while the <menu> element contains interactive items, to act on.
    Note: This element was deprecated in HTML4, but reintroduced in HTML5.

    Attributes

    This element includes the global attributes.

    type
    Used to indicate the kind of menu being declared. The values defined under HTML5 are:
    context
    the commands of a context menu; the user can only interact with the commands if that context menu is activated
    toolbar
    a list of active commands that the user can immediately interact with
    list
    an unordered list of items (each represented by an <li> element), each of which represents a command that the user can perform or activate, or, if the element has no li element children, flow content describing available commands
    label
    Gives the label of the menu.

    Examples

    <menu type="toolbar">
      <li>
        <menu label="File">
          <button type="button" onclick="new()">New...</button>
          <button type="button" onclick="save()">Save...</button>
        </menu>
      </li>
      <li>
        <menu label="Edit">
          <button type="button" onclick="cut()">Cut...</button>
          <button type="button" onclick="copy()">Copy...</button>
          <button type="button" onclick="paste()">Paste...</button>
        </menu>
      </li>
    </menu>

    Specifications

    Specification Status Comment
    WHATWG HTML Living Standard
    The definition of '<menu>' in that specification.
    Living Standard  
    HTML5.1 (draft)
    The definition of '<menu>' in that specification.
    Working Draft  

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
    Basic support ? ? ? ? ?
    Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
    Basic support ? ? ? ? ?

    See also

    Document Tags and Contributors

    Last updated by: SteveFaulkner,