Publish in HTML Tutorial el 24/05/2025 17:24
The <menu> element represents a group of commands that a user can perform or activate. While similar to unordered lists (<ul>), the <menu> element is semantically intended for interactive items and can be used for context menus, toolbar commands, and other lists of user actions.
Key features of the <menu> element:
Here's the basic structure of a <menu> element:
A simple menu containing action buttons with Bootstrap styling:
A right-click context menu that appears at the cursor position:
A horizontal menu styled as a toolbar with Bootstrap:
A menu with nested submenus that appear on hover:
A menu with proper ARIA attributes for screen readers:
The <menu> element is widely supported in modern browsers, but some older browsers may require polyfills for advanced features. Always test your implementation across different browsers.
The <style> HTML element contains style information for a document, or part of a document. ...
The <strong> element is used to indicate that its content has strong importance, seriousnes...
The <span> element is an inline container used to mark up a part of a text or document. Unl...
The <source> element is used to specify multiple media resources for media elements like &l...
The <small> element is used to represent side-comments and small print, typically for discl...
HTML <section> Element: The Complete Guide The <section> element is a semantic HTML ...