Menu HTML

HTML <menu> Tag

To define a list or menu of commands the HTML <menu> tag is used. The user can perform or activate these commands. It thus creates a context menu as well as a list menu and can contain multiple <li> or <menuitem> elements within it. It is not recommended to use as it is not supported by many browsers.

Syntax:

<menu>........<menu>

Example:

<!DOCTYPE html>  
<html>   
<body>  
<h2>Subjects:</h2>  
<menu>  
<li>English</li>  
<li>Hindi</li>  
<li>French</li>  
</menu>  
</body>  
</html>

Explanation:

In the above example, we have used the HTML <menu> tag to create a list of the subjects.

Global attributes:

The HTML global attributes are supported by the HTML <menu> tag.

Event attributes:

The HTML event attributes are supported by the HTML <menu> tag.

Supporting Browsers:

Firefox.