Home  >  Article  >  Web Front-end  >  How to use html menu tag

How to use html menu tag

青灯夜游
青灯夜游Original
2019-05-27 17:03:154040browse

html The menu tag can define a command list or menu, usually used in text menus, toolbars and command list options. Currently, all major browsers do not support the 5c0e96d12fc7501cef2ae2efde646ee0 tag. Please use CSS to style your menu list!

How to use html menu tag

html How to use the menu tag?

Function: Define a list or menu of commands.

Description: Used for context menus, toolbars, and for listing form controls and commands.

Note: Currently all major browsers do not support the 5c0e96d12fc7501cef2ae2efde646ee0 tag. Please use CSS to style your menu list!

html menu tag example

<!DOCTYPE html>
<html>
<body>
<menu type="toolbar">
 <li>
  <menu label="File">
   <button type="button" onclick="file_new()">新建</button>
   <button type="button" onclick="file_open()">打开</button>
   <button type="button" onclick="file_save()">保存</button>
  </menu>
 </li>
 <li>
  <menu label="Edit">
   <button type="button" onclick="edit_cut()">剪切</button>
   <button type="button" onclick="edit_copy()">复制</button>
   <button type="button" onclick="edit_paste()">粘贴</button>
  </menu>
 </li>
</menu>
<p><b>注释:</b>所有主流浏览器均不支持 menu 元素。</p>
</body>
</html>

The above is the detailed content of How to use html menu tag. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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
Previous article:How to use html tfoot tagNext article:How to use html tfoot tag