HTML menu and menuitem tag

<menu> tag and <menuitem> tag in HTML

The <menu> tag is used to add an user defined menu item to contextmenu appeared when the right mouse button is clicked.

The following examples only works in firefox.

Example 1

Try Yourself

In the below example, a contextmenu with menu Country is created, and sub menu India and USA is added to it.

Example 2

Try Yourself