Back to Content

HTMLMenuElement

files/en-us/web/api/htmlmenuelement/index.md

latest784 B
Original Source

{{APIRef("HTML DOM")}}

The HTMLMenuElement interface provides additional properties (beyond those inherited from the {{domxref("HTMLElement")}} interface) for manipulating a {{HTMLElement("menu")}} element. <menu> is a semantic alternative to the {{HTMLElement("ul")}} element.

{{InheritanceDiagram}}

Instance properties

Inherits properties from its parent, {{domxref("HTMLElement")}}, and its ancestors.

  • {{domxref("HTMLMenuElement.compact")}} {{deprecated_inline}}
    • : A boolean determining if the menu displays compactly.

Instance methods

Inherits methods from its parent, {{domxref("HTMLElement")}}, and its ancestors.

HTMLMenuElement doesn't implement specific methods.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}