HTML - <menu> Tag


Advertisements


Description

The HTML <menu> tag is used for creating a menu list. This tag has been deprecated in HTML and redefined in HTML5.

Example

<!DOCTYPE html>
<html>

   <head>
      <title>HTML menu Tag</title>
   </head>

   <body>
      <menu>
         <li>ol - ordered list</li>
         <li>ul - unordered list</li>
         <li>dir - directory list</li>
         <li>menu - menu list</li>
      </menu>
   </body>

</html>

This will produce the following result −

Global Attributes

This tag supports all the global attributes described in − HTML Attribute Reference

Specific Attributes

The HTML <menu> tag also supports the following additional attributes −

Attribute Value Description
label html-5 text Specifies a visible label.
type html-5 popup
toolbar
context
Specifies the type of menu to be displayed.

Event Attributes

This tag supports all the event attributes described in − HTML Events Reference

Browser Support

Chrome Firefox IE Opera Safari Android
No Yes No No No No

html_tags_reference.htm

Advertisements