HTMLElement interface represents any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it.
Inherits properties from its parent,
A string representing the access key assigned to the element.
Returns a string containing the element's assigned access key.
A string, where a value of
truemeans the element is editable and a value of
falsemeans it isn't.
Returns a boolean value indicating whether or not the content of the element can be edited.
HTMLMenuElementrepresenting the contextual menu associated with the element. It may be
A string, reflecting the
dirglobal attribute, representing the directionality of the element. Possible values are
A boolean value indicating if the element can be dragged.
A string defining what action label (or icon) to present for the enter key on virtual keyboards.
A string or boolean value reflecting the value of the element's
A boolean value indicating whether the user agent must act as though the given node is absent for the purposes of user interaction events, in-page text searches ("find in page"), and text selection.
Represents the rendered text content of a node and its descendants. As a getter, it approximates the text the user would get if they highlighted the contents of the element with the cursor and then copied it to the clipboard. As a setter, it replaces the content inside the selected element, converting any line breaks into
A string value reflecting the value of the element's
A string representing the language of an element's attributes, text, and element contents.
A boolean value indicating whether an import script can be executed in user agents that support module scripts.
Returns the cryptographic number used once that is used by Content Security Policy to determine whether a given fetch will be allowed to proceed.
doublecontaining the height of an element, relative to the layout.
double, the distance from this element's left border to its
offsetParent's left border.
Elementthat is the element from which all offset calculations are currently computed.
double, the distance from this element's top border to its
offsetParent's top border.
doublecontaining the width of an element, relative to the layout.
Represents the rendered text content of a node and its descendants. As a getter, it is the same as
HTMLElement.innerText(it represents the rendered text content of an element and its descendants). As a setter, it replaces the selected node and its contents with the given value, converting any line breaks into
HTMLElement.propertiesExperimental Read only
A boolean value that controls spell-checking. It is present on all HTML elements, though it doesn't have an effect on all of them.
longrepresenting the position of the element in the tabbing order.
A string containing the text that appears in a popup box when mouse is over the element.
A boolean value representing the translation.
Inherits methods from its parent,
ElementInternalsobject, and enables a custom element to participate in HTML forms.
Removes keyboard focus from the currently focused element.
Sends a mouse click event to the element.
Makes the element the current keyboard focus.
Listen to these events using
addEventListener() or by assigning an event listener to the
oneventname property of this interface.
Fired when the user initiates a copy action through the browser's user interface.
Fired when the user initiates a cut action through the browser's user interface.
Fired when the user initiates a paste action through the browser's user interface.
Fired when an element does not satisfy its constraints during constraint validation.
Fired when the
<textarea>element has been changed and committed by the user. Unlike the
changeevent is not necessarily fired for each alteration to an element's
Fired when an element captures a pointer using
Fired when a captured pointer is released.
Fired when a pointer event is canceled.
Fired when a pointer becomes active.
Fired when a pointer is moved into the hit test boundaries of an element or one of its descendants.
Fired when a pointer is moved out of the hit test boundaries of an element.
Fired when a pointer changes coordinates.
Fired when a pointer is moved out of the hit test boundaries of an element (among other reasons).
Fired when a pointer is moved into an element's hit test boundaries.
Fired when a pointer is no longer active.
|HTML Standard |
BCD tables only load in the browser