Home > Web Front-end > HTML Tutorial > html: Detailed explanation of menu tag definition menu list

html: Detailed explanation of menu tag definition menu list

黄舟
Release: 2017-06-29 10:47:10
Original
4135 people have browsed it

The

menu element has been deprecated in HTML4.01. In the current HTML5, the menu element has been redefined, and the list items in this element can also be marked using the li tag.

menu tag defines the menu list, which is usually used for text menus, toolbars and command columns. Table option can be used when you want to list the formcontrols Label. The display effect of the menu list in the browser is the same as that of the unordered list. The function at this point can also be realized through the unordered list.

html: Detailed explanation of menu tag definition menu list

New attribute of the menu label

label attribute (defines the visible label of the menu item, often used to mark nesting within the menu Menu, syntax: menu label="File")

type attribute (defines the type of menu display, the default value is "list", syntax: menu type="value")
list: Default value. Specifies a list menu. A list of commands (li element) that the user can execute or activate.
toolbar: Specifies a toolbar menu. Proactive commands allow the user to interact with the command immediately.
contextmenu: Specifies a context menu that will be displayed when the user right-clicks an element.

Note: Currently, mainstream browsers do not support the menu tag.

The above is the detailed content of html: Detailed explanation of menu tag definition menu list. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template