HTML - <menu> Tag



The HTML <menu> tag is used for creating a menu list.

The <menu> tag is depricated in HTML4 and re-introduced in HTML5.But it is better to ignore this tag as it is experimental and not supported by many browsers.

Example

Let's look at the following example, where we are going to use the menu tag.

<!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>

When we run the above code, it will generate an output consisting of the list items displayed on the webpage.

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

html_deprecated_tags.htm
Advertisements