HTML <button> Tag with the 'menu' Attribute

<button type="menu" menu="resources">Resources</button>

<menu id="resources" type="popup">
<menuitem onclick="location=''" label="HTML Tags">
<menuitem onclick="location=''" label="HTML Templates">
<p>Note that browser support was almost non-existent at time of writing.</p>

In the above example we add the menu attribute to a button control.

Note: Browser support for the <menu> element is almost non-existent at the time of writing.

About the menu Attribute

If the type attribute has a value of menu, the menu attribute must be provided in order to specify the element's menu. The value must be the ID of a <menu> element in the same home subtree whose type attribute is in the popup menu state.

The menu attribute can only be used when the type attribute has a value of menu.

About the <button> Element

The <button> element creates a button control in an HTML document.

Any contents of the <button> element appears on the button.

The <button> element can be associated with a form or stand alone by itself (in such case it could have JavaScript attached via the onclick attribute) to make the button actually do something.