docs.rodeo

MDN Web Docs mirror

HTMLElement

{{APIRef("HTML DOM")}} 

The HTMLElement interface represents any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it.

{{InheritanceDiagram}} 

Instance properties

Also inherits properties from its parent, {{DOMxRef("Element")}} .

Instance methods

Also inherits methods from its parent, {{DOMxRef("Element")}} .

Events

Listen to these events using {{domxref("EventTarget.addEventListener", "addEventListener()")}}  or by assigning an event listener to the oneventname property of this interface.

Also, inherits events from its parent, {{DOMxRef("Element")}} .

Clipboard events

Drag & drop events

Toggle events

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN