Lists

HTML <menu> element

Represents a list of commands. In typical rendering it resembles an unordered list, with li children. Use menu when the list represents commands, but do not assume it supplies menu keyboard interactions or ARIA menu behavior. Native buttons inside list items can provide accessible commands. It accepts global HTML attributes; individual global features may be inapplicable or restricted.

Formal Syntax & Structure

html syntaxhtml
<menu>  <li>Command</li></menu>

Return Value

HTMLMenuElement

Content model: li elements and script-supporting elements.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <meta charset="utf-8">    <title>HTML example</title>  </head>  <body>    <menu>      <li>        <button type="button">Copy</button>      </li>      <li>        <button type="button">Paste</button>      </li>    </menu>  </body></html>
HTML Reference