diff --git a/files/en-us/web/html/element/menu/index.md b/files/en-us/web/html/element/menu/index.md index 75dc89a401f80f2..c168821339dd076 100644 --- a/files/en-us/web/html/element/menu/index.md +++ b/files/en-us/web/html/element/menu/index.md @@ -11,7 +11,7 @@ browser-compat: html.elements.menu --- {{HTMLRef}} -The **``** [HTML](/en-US/docs/Web/HTML) element is a semantic alternative to {{HTMLElement("ul")}}. It represents an unordered list of items (represented by {{HTMLElement("li")}} elements), each of which represents a link or other command that the user can activate. +The **``** [HTML](/en-US/docs/Web/HTML) element is described in the HTML specification as a semantic alternative to {{HTMLElement("ul")}}, but treated by browsers (and exposed through the accessibility tree) as no different than {{HTMLElement("ul")}}. It represents an unordered list of items (which are represented by {{HTMLElement("li")}} elements). ## Attributes @@ -19,7 +19,7 @@ This element only includes the [global attributes](/en-US/docs/Web/HTML/Global_a ## Usage notes -The `` and {{HTMLElement("ul")}} elements both represent an unordered list of items. The key difference is that {{HTMLElement("ul")}} primarily contains items for display, while `` is intended for interactive items. +The `` and {{HTMLElement("ul")}} elements both represent an unordered list of items. The key difference is that {{HTMLElement("ul")}} primarily contains items for display, while `` was intended for interactive items. The related {{HTMLElement("menuitem")}} element has been deprecated. > **Note:** In early versions of the HTML specification, the `` element had an additional use case as a context menu. This functionality is considered obsolete and is not in the specification. @@ -38,11 +38,21 @@ In this example, a `` is used to create a toolbar for an editing applicati
  • ``` + +Note that this is functionally no different than: + +```html +
      +
    • +
    • +
    • +
    +``` #### CSS ```css -menu { +menu, ul { display: flex; list-style: none; padding: 0;