The HTMLElement interface represents any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it.
<div id="interfaceDiagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveAspectRatio="xMinYMin meet"><a xlink:href="https://developer.mozilla.org/en-US/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="https://developer.mozilla.org/en-US/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="https://developer.mozilla.org/en-US/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a></svg></div>
a:hover text { fill: #0095DD; pointer-events: all;}
Properties
Inherits properties from its parent, Element, and implements those from DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrForeignElement and TouchEventHandlers.
HTMLElement.accessKey- Is a
DOMStringrepresenting the access key assigned to the element. HTMLElement.accessKeyLabelRead only- Returns a
DOMStringcontaining the element's assigned access key. HTMLElement.contentEditable- Is a
DOMString, where a value oftruemeans the element is editable and a value offalsemeans it isn't. HTMLElement.isContentEditableRead only- Returns a
Booleanthat indicates whether or not the content of the element can be edited. HTMLElement.contextMenu'- Is a
HTMLMenuElementrepresenting the contextual menu associated with the element. It may benull. HTMLOrForeignElement.datasetRead only- Returns a
DOMStringMapwith which script can read and write the element's custom data attributes (data-*) . HTMLElement.dir- Is a
DOMString, reflecting thedirglobal attribute, representing the directionality of the element. Possible values are"ltr","rtl", and"auto". HTMLElement.draggable- Is a
Booleanindicating if the element can be dragged. HTMLElement.dropzoneRead only- Returns a
DOMSettableTokenListreflecting thedropzoneglobal attribute and describing the behavior of the element regarding a drop operation. HTMLElement.hidden- Is a
Booleanindicating if the element is hidden or not. HTMLElement.inert- Is a
Booleanindicating 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. HTMLElement.innerText- 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.
HTMLElement.itemScope'- Is a
Booleanrepresenting the item scope. HTMLElement.itemType' Read only- Returns a
DOMSettableTokenList… HTMLElement.itemId'- Is a
DOMStringrepresenting the item ID. HTMLElement.itemRef' Read only- Returns a
DOMSettableTokenList… HTMLElement.itemProp' Read only- Returns a
DOMSettableTokenList… HTMLElement.itemValue'- Returns a
Objectrepresenting the item value. HTMLElement.lang- Is a
DOMStringrepresenting the language of an element's attributes, text, and element contents. HTMLElement.noModule- Is a
Booleanindicating whether an import script can be executed in user agents that support module scripts. HTMLOrForeignElement.nonce- Returns the cryptographic number used once that is used by Content Security Policy to determine whether a given fetch will be allowed to proceed.
HTMLElement.offsetHeight' Read only- Returns a
doublecontaining the height of an element, relative to the layout. HTMLElement.offsetLeft' Read only- Returns a
double, the distance from this element's left border to itsoffsetParent's left border. HTMLElement.offsetParent' Read only- Returns a
Elementthat is the element from which all offset calculations are currently computed. HTMLElement.offsetTop' Read only- Returns a
double, the distance from this element's top border to itsoffsetParent's top border. HTMLElement.offsetWidth' Read only- Returns a
doublecontaining the width of an element, relative to the layout. HTMLElement.properties' Read only- Returns a
HTMLPropertiesCollection… HTMLElement.spellcheck- Is a
Booleanthat controls spell-checking. It is present on all HTML elements, though it doesn't have an effect on all of them. HTMLElement.style- Is a
CSSStyleDeclaration, an object representing the declarations of an element's style attributes. HTMLOrForeignElement.tabIndex- Is a
longrepresenting the position of the element in the tabbing order. HTMLElement.title- Is a
DOMStringcontaining the text that appears in a popup box when mouse is over the element. HTMLElement.translate'- Is a
Booleanrepresenting the translation.
Event handlers
Most event handler properties, of the form onXYZ, are defined on the DocumentAndElementEventHandlers, GlobalEventHandlers or TouchEventHandlers interfaces and implemented by HTMLElement. In addition, the following handlers are specific to HTMLElement.
HTMLElement.oncopy'- Returns the event handling code for the
copyevent (bug 280959). HTMLElement.oncut'- Returns the event handling code for the
cutevent (bug 280959). HTMLElement.onpaste'- Returns the event handling code for the
pasteevent (bug 280959). TouchEventHandlers.ontouchstart'- Returns the event handling code for the
touchstartevent. TouchEventHandlers.ontouchend'- Returns the event handling code for the
touchendevent. TouchEventHandlers.ontouchmove'- Returns the event handling code for the
touchmoveevent. TouchEventHandlers.ontouchenter'- Returns the event handling code for the
touchenterevent. TouchEventHandlers.ontouchleave'- Returns the event handling code for the
touchleaveevent. TouchEventHandlers.ontouchcancel'- Returns the event handling code for the
touchcancelevent.
Methods
Inherits methods from its parent, Element, and implements those from DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrForeignElement and TouchEventHandlers.
HTMLElement.attachInternals()'- Attaches an
ElementInternalsinstance to the custom element. HTMLOrForeignElement.blur()- Removes keyboard focus from the currently focused element.
HTMLElement.click()- Sends a mouse click event to the element.
HTMLOrForeignElement.focus()- Makes the element the current keyboard focus.
HTMLElement.forceSpellCheck()'- Runs the spell checker on the element's contents.
Events
Listen to these events using addEventListener() or by assigning an event listener to the oneventname property of this interface.
invalid- Fired when an element does not satisfy its constraints during constraint validation. Also available via the
oninvalidproperty.
Animation events
animationcancel- Fired when an animation unexpectedly aborts. Also available via the
onanimationcancelproperty. animationend- Fired when an animation has completed normally. Also available via the
onanimationendproperty. animationiteration- Fired when an animation iteration has completed. Also available via the
onanimationiterationproperty. animationstart- Fired when an animation starts. Also available via the
onanimationstartproperty.
Input events
beforeinput- Fired when the value of an
<input>,<select>, or<textarea>element is about to be modified. input- Fired when the
valueof an<input>,<select>, or<textarea>element has been changed. Also available via theoninputproperty. change- Fired when the
valueof an<input>,<select>, or<textarea>element has been changed and committed by the user. Unlike theinputevent, thechangeevent is not necessarily fired for each alteration to an element'svalue.
Pointer events
gotpointercapture- Fired when an element captures a pointer using
setPointerCapture(). Also available via theongotpointercaptureproperty. lostpointercapture- Fired when a captured pointer is released. Also available via the
onlostpointercaptureproperty. pointercancel- Fired when a pointer event is canceled. Also available via the
onpointercancelproperty. pointerdown- Fired when a pointer becomes active. Also available via the
onpointerdownproperty. pointerenter- Fired when a pointer is moved into the hit test boundaries of an element or one of its descendants. Also available via the
onpointerenterproperty. pointerleave- Fired when a pointer is moved out of the hit test boundaries of an element. Also available via the
onpointerleaveproperty. pointermove- Fired when a pointer changes coordinates. Also available via the
onpointermoveproperty. pointerout- Fired when a pointer is moved out of the hit test boundaries of an element (among other reasons). Also available via the
onpointeroutproperty. pointerover- Fired when a pointer is moved into an element's hit test boundaries. Also available via the
onpointeroverproperty. pointerup- Fired when a pointer is no longer active. Also available via the
onpointerupproperty.
Transition events
transitioncancel- Fired when a CSS transition is canceled. Also available via the
ontransitioncancelproperty. transitionend- Fired when a CSS transition has completed. Also available via the
ontransitionendproperty. transitionrun- Fired when a CSS transition is first created. Also available via the
ontransitionrunproperty. transitionstart- Fired when a CSS transition has actually started. Also available via the
ontransitionstartproperty.
Specifications
| Specification | Status | Comment |
|---|---|---|
| CSS Object Model (CSSOM) View ModuleThe definition of 'HTMLElement' in that specification. | Working Draft | Added the following properties: offsetParent, offsetTop, offsetLeft, offsetWidth, and offsetHeight.
|
| HTML Living StandardThe definition of 'HTMLElement' in that specification. | Living Standard | Added the following properties: translate, itemScope, itemType, itemId, itemRef, itemProp, properties, and itemValue.
Added the following method: |
| HTML5The definition of 'HTMLElement' in that specification. | Recommendation | Added the following properties: dataset, hidden, tabIndex, accessKey, accessKeyLabel, draggable, dropzone, contentEditable, isContentEditable, contextMenu, spellcheck, commandType, commandLabel, commandIcon, commandHidden, commandDisabled, commandChecked, style, and all the onXYZ properties.
Moved the |
| Document Object Model (DOM) Level 2 HTML SpecificationThe definition of 'HTMLElement' in that specification. | Obsolete | No change from Document Object Model (DOM) Level 2 HTML Specification |
| Document Object Model (DOM) Level 1 SpecificationThe definition of 'HTMLElement' in that specification. | Obsolete | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
HTMLElement
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
Full support 5.5 |
Opera
Full support 8 |
Safari
Full support 3 |
WebView Android
Full support 1 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support 10.1 |
Safari iOS
Full support 1 |
Samsung Internet Android
Full support 1.0 |
accessKey
|
Chrome
Full support 17 |
Edge
Full support 12 |
Firefox
Full support 5 |
IE
? |
Opera
Full support Yes |
Safari
Full support 6 |
WebView Android
Full support 4.4 |
Chrome Android
Full support 18 |
Firefox Android
Full support 5 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 1.0 |
accessKeyLabel
|
Chrome
No support No |
Edge
No support No |
Firefox
Full support 8 |
IE
No support No |
Opera
? |
Safari
Full support 14 |
WebView Android
No support No |
Chrome Android
No support No |
Firefox Android
Full support 8 |
Opera Android
? |
Safari iOS
Full support 14 |
Samsung Internet Android
No support No |
animationcancel event
|
Chrome
No support No |
Edge
No support No |
Firefox
Full support 54 |
IE
No support No |
Opera
No support No |
Safari Full support 13.1 Full support 13.1 Full support 12 Disabled' From version 12: this feature is behind the |
WebView Android
No support No |
Chrome Android
No support No |
Firefox Android
Full support 54 |
Opera Android
No support No |
Safari iOS Full support 13.4 Full support 13.4 Full support 12 Disabled' From version 12: this feature is behind the |
Samsung Internet Android
No support No |
animationend event
|
Chrome
Full support 43 |
Edge
Full support 12 |
Firefox
Full support Yes |
IE
Full support 10 |
Opera
Full support 30 |
Safari
Full support 9 |
WebView Android
Full support 43 |
Chrome Android
Full support 43 |
Firefox Android
Full support Yes |
Opera Android
Full support 30 |
Safari iOS
Full support 9 |
Samsung Internet Android
Full support 4.0 |
animationiteration event
|
Chrome
Full support 43 |
Edge
Full support 12 |
Firefox
Full support 51 |
IE
Full support 10 |
Opera
Full support 30 |
Safari
Full support 9 |
WebView Android
Full support 43 |
Chrome Android
Full support 43 |
Firefox Android
Full support 51 |
Opera Android
Full support 30 |
Safari iOS
Full support 9 |
Samsung Internet Android
Full support 4.0 |
animationstart event
|
Chrome
Full support 43 |
Edge
Full support 12 |
Firefox
Full support 51 |
IE
Full support 10 |
Opera
Full support 30 |
Safari
Full support 9 |
WebView Android
Full support 43 |
Chrome Android
Full support 43 |
Firefox Android
Full support 51 |
Opera Android
Full support 30 |
Safari iOS
Full support 9 |
Samsung Internet Android
Full support 4.0 |
autocapitalize
|
Chrome
Full support 66 |
Edge
Full support ≤79 |
Firefox
? |
IE
No support No |
Opera
? |
Safari
? |
WebView Android
Full support 66 |
Chrome Android
Full support 66 |
Firefox Android
? |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
Full support 9.0 |
| Chrome
Full support Yes |
Edge
Full support 79 |
Firefox
No support No |
IE
No support No |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
Full support Yes |
Chrome Android
Full support Yes |
Firefox Android
No support No |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support Yes | |
blur
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 5 |
IE
Full support 9 |
Opera
Full support 8 |
Safari
Full support 3 |
WebView Android
Full support 4.4 |
Chrome Android
Full support 18 |
Firefox Android
Full support 5 |
Opera Android
Full support 10.1 |
Safari iOS
Full support 1 |
Samsung Internet Android
Full support 1.0 |
| click() |
Chrome Full support 9 Full support 9 Notes' Before Chrome 19, |
Edge
Full support 12 |
Firefox Full support 3 Full support 3 Notes' Before Firefox 5, |
IE
Full support 8 |
Opera
Full support 10.5 |
Safari
Full support 6 |
WebView Android Full support ≤37 Full support ≤37 Notes' Before Android WebView 4.4, |
Chrome Android Full support 18 Full support 18 Notes' Before Chrome 19, |
Firefox Android
Full support 5 |
Opera Android
Full support 11 |
Safari iOS
Full support 6 |
Samsung Internet Android Full support 1.0 Full support 1.0 Notes' Before Samsung Internet 1.5, |
contentEditable
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 3 |
IE
Full support 8 |
Opera
Full support 9 |
Safari
Full support 6 |
WebView Android
Full support 4.4 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 1.0 |
| Chrome
No support 45 — 61 |
Edge
No support ≤18 — 79 |
Firefox
Full support 1 |
IE
? |
Opera
? |
Safari
? |
WebView Android
No support 45 — 61 |
Chrome Android
No support 45 — 61 |
Firefox Android
Full support 4 |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
No support 5.0 — 8.0 | |
dataset
|
Chrome
Full support 8 |
Edge
Full support 12 |
Firefox
Full support 6 |
IE
Full support 11 |
Opera
Full support 11 |
Safari
Full support 5.1 |
WebView Android
Full support 4.4 |
Chrome Android
Full support 18 |
Firefox Android
Full support 6 |
Opera Android
Full support 11 |
Safari iOS
Full support 5.1 |
Samsung Internet Android
Full support 1.0 |
dir
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
? |
Opera
Full support Yes |
Safari
Full support 6 |
WebView Android
Full support 4.4 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 1.0 |
draggable
|
Chrome
Full support 7 |
Edge
Full support 12 |
Firefox
Full support 2 |
IE
Full support Yes |
Opera
Full support 12 |
Safari
Full support 6 |
WebView Android
Full support 4.4 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 1.0 |
dropzone
|
Chrome
No support 14 — 59 |
Edge
No support ≤18 — 79 |
Firefox
Full support 1 |
IE
? |
Opera
? |
Safari
? |
WebView Android
No support 4.4 — 59 |
Chrome Android
No support 18 — 59 |
Firefox Android
Full support 4 |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
No support 1.0 — 7.0 |
enterKeyHint
|
Chrome
Full support 77 |
Edge
No support No |
Firefox Full support 79 Full support 79 Disabled' From version 79: this feature is behind the |
IE
No support No |
Opera
No support No |
Safari
Full support 13.1 |
WebView Android
Full support 77 |
Chrome Android
Full support 77 |
Firefox Android Full support 79 Full support 79 Disabled' From version 79: this feature is behind the |
Opera Android
No support No |
Safari iOS
Full support 13.4 |
Samsung Internet Android
No support No |
focus
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 5 |
IE
Full support 9 |
Opera
Full support 8 |
Safari
Full support 3 |
WebView Android
Full support 4.4 |
Chrome Android
Full support 18 |
Firefox Android
Full support 5 |
Opera Android
Full support 10.1 |
Safari iOS
Full support 1 |
Samsung Internet Android
Full support 1.0 |
| Chrome
No support No |
Edge
No support No |
Firefox
No support No |
IE
No support No |
Opera
No support No |
Safari
? |
WebView Android
No support No |
Chrome Android
No support No |
Firefox Android
Full support 4 |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
No support No | |
gotpointercapture event
|
Chrome
Full support 57 |
Edge
Full support ≤79 |
Firefox
Full support 59 |
IE
? |
Opera
Full support 44 |
Safari
? |
WebView Android
Full support 57 |
Chrome Android
Full support 57 |
Firefox Android
No support No |
Opera Android
Full support 43 |
Safari iOS
? |
Samsung Internet Android
Full support 7.0 |
hidden
|
Chrome
Full support 6 |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
Full support 11 |
Opera
Full support 11.6 |
Safari
Full support 6 |
WebView Android
Full support ≤37 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support 12 |
Safari iOS
Full support 6 |
Samsung Internet Android
Full support 1.0 |
inert
|
Chrome Full support 60 Full support 60 Disabled' From version 60: this feature is behind the |
Edge Full support 79 Full support 79 Disabled' From version 79: this feature is behind the |
Firefox Full support 81 Full support 81 Disabled' From version 81: this feature is behind the |
IE
No support No |
Opera Full support 47 Full support 47 Disabled' From version 47: this feature is behind the |
Safari
No support No |
WebView Android
No support No |
Chrome Android Full support 60 Full support 60 Disabled' From version 60: this feature is behind the |
Firefox Android Full support 81 Full support 81 Disabled' From version 81: this feature is behind the |
Opera Android Full support 44 Full support 44 Disabled' From version 44: this feature is behind the |
Safari iOS
No support No |
Samsung Internet Android
No support No |
innerText
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 45 |
IE
Full support 5.5 |
Opera
Full support 9.6 |
Safari
Full support 3 |
WebView Android
Full support 4.4 |
Chrome Android
Full support 18 |
Firefox Android
Full support 45 |
Opera Android
Full support 10.1 |
Safari iOS
Full support 4 |
Samsung Internet Android
Full support 1.0 |
input event
|
Chrome
Full support 1 |
Edge Full support 79 Full support 79 No support 12 — 79 Notes' Not supported on |
Firefox
Full support 6 |
IE Partial support 9 Partial support 9 Notes' Only supports |
Opera
Full support 11.6 |
Safari
Full support 3.1 |
WebView Android
Full support 1 |
Chrome Android
Full support 18 |
Firefox Android
Full support 6 |
Opera Android
Full support 12 |
Safari iOS
Full support 2 |
Samsung Internet Android
Full support 1.0 |
inputMode
|
Chrome
Full support 66 |
Edge
Full support ≤79 |
Firefox Full support 77 Full support 77 Disabled' From version 77: this feature is behind the |
IE
No support No |
Opera
Full support Yes |
Safari
? |
WebView Android
Full support 66 |
Chrome Android
Full support 66 |
Firefox Android
Full support 79 |
Opera Android
Full support Yes |
Safari iOS
? |
Samsung Internet Android
Full support 9.0 |
isContentEditable
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
? |
Opera
Full support Yes |
Safari
Full support 6 |
WebView Android
Full support 4.4 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 1.0 |
| Chrome
No support 17 — 28 |
Edge
No support No |
Firefox
Full support 6 |
IE
No support No |
Opera
No support 11 — 15 |
Safari
? |
WebView Android
No support No |
Chrome Android
No support 18 — 28 |
Firefox Android
Full support 4 |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
No support 1.0 — 1.5 | |
| Chrome
No support 17 — 28 |
Edge
No support No |
Firefox
Full support 6 |
IE
No support No |
Opera
No support 11 — 15 |
Safari
? |
WebView Android
No support No |
Chrome Android
No support 18 — 28 |
Firefox Android
Full support 4 |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
No support 1.0 — 1.5 | |
| Chrome
No support 17 — 28 |
Edge
No support No |
Firefox
Full support 6 |
IE
No support No |
Opera
No support 11 — 15 |
Safari
? |
WebView Android
No support No |
Chrome Android
No support 18 — 28 |
Firefox Android
Full support 4 |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
No support 1.0 — 1.5 | |
| Chrome
No support 17 — 28 |
Edge
No support No |
Firefox
Full support 6 |
IE
No support No |
Opera
No support 11 — 15 |
Safari
? |
WebView Android
No support No |
Chrome Android
No support 18 — 28 |
Firefox Android
Full support 4 |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
No support 1.0 — 1.5 | |
| Chrome
No support 17 — 28 |
Edge
No support No |
Firefox
Full support 6 |
IE
No support No |
Opera
No support 11 — 15 |
Safari
? |
WebView Android
No support No |
Chrome Android
No support 18 — 28 |
Firefox Android
Full support 4 |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
No support 1.0 — 1.5 | |
itemValue
|
Chrome
No support 17 — 28 |
Edge
No support No |
Firefox
Full support 6 |
IE
No support No |
Opera
No support 11 — 15 |
Safari
? |
WebView Android
No support No |
Chrome Android
No support 18 — 28 |
Firefox Android
Full support 4 |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
No support 1.0 — 1.5 |
lang
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
? |
Opera
Full support Yes |
Safari
Full support 6 |
WebView Android
Full support 4.4 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 1.0 |
lostpointercapture event
|
Chrome
Full support 57 |
Edge
Full support ≤79 |
Firefox
Full support 59 |
IE
? |
Opera
Full support 44 |
Safari
? |
WebView Android
Full support 57 |
Chrome Android
Full support 57 |
Firefox Android
No support No |
Opera Android
Full support 43 |
Safari iOS
? |
Samsung Internet Android
Full support 7.0 |
noModule
|
Chrome
Full support 60 |
Edge
Full support ≤79 |
Firefox
? |
IE
No support No |
Opera
Full support 47 |
Safari
? |
WebView Android
Full support 60 |
Chrome Android
Full support 60 |
Firefox Android
? |
Opera Android
Full support 44 |
Safari iOS
? |
Samsung Internet Android
Full support 8.0 |
nonce
|
Chrome
Full support 61 |
Edge
Full support 79 |
Firefox
Full support 75 |
IE
No support No |
Opera
Full support Yes |
Safari
Full support 10 |
WebView Android
Full support 61 |
Chrome Android
Full support 61 |
Firefox Android
No support No |
Opera Android
Full support Yes |
Safari iOS
Full support 10 |
Samsung Internet Android
Full support 8.0 |
offsetHeight
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
Full support 8 |
Opera
Full support 8 |
Safari
Full support 3 |
WebView Android
Full support 1 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support 10.1 |
Safari iOS
Full support 1 |
Samsung Internet Android
Full support 1.0 |
offsetLeft
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
Full support 8 |
Opera
Full support 8 |
Safari
Full support 3 |
WebView Android
Full support 1 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support 10.1 |
Safari iOS
Full support 1 |
Samsung Internet Android
Full support 1.0 |
offsetParent
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
Full support 8 |
Opera
Full support 8 |
Safari
Full support 3 |
WebView Android
Full support 1 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support 10.1 |
Safari iOS
Full support 1 |
Samsung Internet Android
Full support 1.0 |
offsetTop
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
Full support 8 |
Opera
Full support 8 |
Safari
Full support 3 |
WebView Android
Full support 1 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support 10.1 |
Safari iOS
Full support 1 |
Samsung Internet Android
Full support 1.0 |
offsetWidth
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
Full support 8 |
Opera
Full support 8 |
Safari
Full support 3 |
WebView Android
Full support 1 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support 10.1 |
Safari iOS
Full support 1 |
Samsung Internet Android
Full support 1.0 |
| Chrome
Full support 71 |
Edge
Full support 12 |
Firefox
Full support 3 |
IE
? |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
Full support 71 |
Chrome Android
Full support 71 |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 10.0 | |
| Chrome
Full support 71 |
Edge
Full support 12 |
Firefox
Full support 3 |
IE
? |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
Full support 71 |
Chrome Android
Full support 71 |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 10.0 | |
onModule
|
Chrome
Full support 60 |
Edge
Full support ≤79 |
Firefox
? |
IE
? |
Opera
Full support 47 |
Safari
? |
WebView Android
Full support 60 |
Chrome Android
Full support 60 |
Firefox Android
? |
Opera Android
Full support 44 |
Safari iOS
? |
Samsung Internet Android
Full support 8.0 |
| Chrome
Full support 71 |
Edge
Full support 12 |
Firefox
Full support 3 |
IE
? |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
Full support 71 |
Chrome Android
Full support 71 |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 10.0 | |
| Chrome
Full support 43 |
Edge
Full support 12 |
Firefox
No support No |
IE
Full support Yes |
Opera
Full support Yes |
Safari
Full support 6 |
WebView Android
Full support 43 |
Chrome Android
Full support 43 |
Firefox Android
No support No |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 4.0 | |
pointercancel event
|
Chrome
Full support 55 |
Edge Full support 12 Full support 12 No support 12 — 79 Alternate Name' Uses the non-standard name: |
Firefox Full support 59 Full support 59 Full support 29 Disabled' From version 29: this feature is behind the |
IE Full support 11 Full support 11 Full support 10 Alternate Name' Uses the non-standard name: |
Opera
? |
Safari
No support No |
WebView Android
Full support 55 |
Chrome Android
Full support 55 |
Firefox Android Full support 29 Full support 29 Disabled' From version 29: this feature is behind the |
Opera Android
? |
Safari iOS
No support No |
Samsung Internet Android
Full support 6.0 |
pointerdown event
|
Chrome
Full support 55 |
Edge Full support 12 Full support 12 No support 12 — 79 Alternate Name' Uses the non-standard name: |
Firefox Full support 59 Full support 59 Full support 29 Disabled' From version 29: this feature is behind the |
IE Full support 11 Full support 11 Full support 10 Alternate Name' Uses the non-standard name: |
Opera
? |
Safari
No support No |
WebView Android
Full support 55 |
Chrome Android
Full support 55 |
Firefox Android Full support 29 Full support 29 Disabled' From version 29: this feature is behind the |
Opera Android
? |
Safari iOS
No support No |
Samsung Internet Android
Full support 6.0 |
pointerenter event
|
Chrome
Full support 55 |
Edge Full support 12 Full support 12 No support 12 — 79 Alternate Name' Uses the non-standard name: |
Firefox Full support 59 Full support 59 Full support 29 Disabled' From version 29: this feature is behind the |
IE Full support 11 Full support 11 Full support 10 Alternate Name' Uses the non-standard name: |
Opera
? |
Safari
No support No |
WebView Android
Full support 55 |
Chrome Android
Full support 55 |
Firefox Android Full support 29 Full support 29 Disabled' From version 29: this feature is behind the |
Opera Android
? |
Safari iOS
No support No |
Samsung Internet Android
Full support 6.0 |
pointerleave event
|
Chrome
Full support 55 |
Edge Full support 12 Full support 12 No support 12 — 79 Alternate Name' Uses the non-standard name: |
Firefox Full support 59 Full support 59 Full support 29 Disabled' From version 29: this feature is behind the |
IE Full support 11 Full support 11 Full support 10 Alternate Name' Uses the non-standard name: |
Opera
? |
Safari
No support No |
WebView Android
Full support 55 |
Chrome Android
Full support 55 |
Firefox Android Full support 29 Full support 29 Disabled' From version 29: this feature is behind the |
Opera Android
? |
Safari iOS
No support No |
Samsung Internet Android
Full support 6.0 |
pointermove event
|
Chrome
Full support 55 |
Edge Full support 12 Full support 12 No support 12 — 79 Alternate Name' Uses the non-standard name: |
Firefox Full support 59 Full support 59 Full support 29 Disabled' From version 29: this feature is behind the |
IE Full support 11 Full support 11 Full support 10 Alternate Name' Uses the non-standard name: |
Opera
? |
Safari
No support No |
WebView Android
Full support 55 |
Chrome Android
Full support 55 |
Firefox Android Full support 29 Full support 29 Disabled' From version 29: this feature is behind the |
Opera Android
? |
Safari iOS
No support No |
Samsung Internet Android
Full support 6.0 |
pointerout event
|
Chrome
Full support 55 |
Edge Full support 12 Full support 12 No support 12 — 79 Alternate Name' Uses the non-standard name: |
Firefox Full support 59 Full support 59 Full support 29 Disabled' From version 29: this feature is behind the |
IE Full support 11 Full support 11 Full support 10 Alternate Name' Uses the non-standard name: |
Opera
? |
Safari
No support No |
WebView Android
Full support 55 |
Chrome Android
Full support 55 |
Firefox Android Full support 29 Full support 29 Disabled' From version 29: this feature is behind the |
Opera Android
? |
Safari iOS
No support No |
Samsung Internet Android
Full support 6.0 |
pointerover event
|
Chrome
Full support 55 |
Edge Full support 12 Full support 12 No support 12 — 79 Alternate Name' Uses the non-standard name: |
Firefox Full support 59 Full support 59 Full support 29 Disabled' From version 29: this feature is behind the |
IE Full support 11 Full support 11 Full support 10 Alternate Name' Uses the non-standard name: |
Opera
? |
Safari
No support No |
WebView Android
Full support 55 |
Chrome Android
Full support 55 |
Firefox Android Full support 29 Full support 29 Disabled' From version 29: this feature is behind the |
Opera Android
? |
Safari iOS
No support No |
Samsung Internet Android
Full support 6.0 |
pointerup event
|
Chrome
Full support 55 |
Edge Full support 12 Full support 12 No support 12 — 79 Alternate Name' Uses the non-standard name: |
Firefox Full support 59 Full support 59 Full support 29 Disabled' From version 29: this feature is behind the |
IE Full support 11 Full support 11 Full support 10 Alternate Name' Uses the non-standard name: |
Opera
? |
Safari
No support No |
WebView Android
Full support 55 |
Chrome Android
Full support 55 |
Firefox Android Full support 29 Full support 29 Disabled' From version 29: this feature is behind the |
Opera Android
? |
Safari iOS
No support No |
Samsung Internet Android
Full support 6.0 |
spellcheck
|
Chrome
Full support 43 |
Edge
Full support 12 |
Firefox
Full support 2 |
IE
? |
Opera
Full support Yes |
Safari
Full support 6 |
WebView Android
Full support 43 |
Chrome Android
Full support 43 |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 4.0 |
style
|
Chrome
Full support 45 |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
Full support 8 |
Opera
Full support 8 |
Safari
Full support 11 |
WebView Android
Full support 45 |
Chrome Android
Full support 45 |
Firefox Android
Full support 4 |
Opera Android
Full support 10.1 |
Safari iOS
Full support 11 |
Samsung Internet Android
Full support 5.0 |
tabIndex
|
Chrome
Full support 1 |
Edge Full support 18 Full support 18 Partial support 12 Notes' Returns incorrect value for elements without an explicit tabindex attribute. See issue 4365703 for details. |
Firefox
Full support 1 |
IE Partial support 8 Partial support 8 Notes' Returns incorrect value for elements without an explicit tabindex attribute. See issue 4365703 for details. |
Opera
Full support Yes |
Safari
Full support 6 |
WebView Android
Full support 4.4 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 1.0 |
title
|
Chrome
Full support 1 |
Edge
Full support 12 |
Firefox
Full support 1 |
IE
? |
Opera
Full support Yes |
Safari
Full support 6 |
WebView Android
Full support 4.4 |
Chrome Android
Full support 18 |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 1.0 |
transitioncancel event
|
Chrome
Full support 74 |
Edge
Full support ≤79 |
Firefox
Full support 53 |
IE
? |
Opera
Full support 62 |
Safari Full support 13.1 Full support 13.1 Full support 12 Disabled' From version 12: this feature is behind the |
WebView Android
Full support 74 |
Chrome Android
Full support 74 |
Firefox Android
Full support 53 |
Opera Android
Full support 53 |
Safari iOS Full support 13.4 Full support 13.4 Full support 12 Disabled' From version 12: this feature is behind the |
Samsung Internet Android
Full support 11.0 |
transitionend event
|
Chrome Full support 26 Full support 26 Full support 1 Alternate Name' Uses the non-standard name: |
Edge Full support ≤79 Full support ≤79 Full support ≤79 Alternate Name' Uses the non-standard name: |
Firefox
Full support 51 |
IE
Full support 10 |
Opera Full support 12.1 Full support 12.1 Full support 15 Alternate Name' Uses the non-standard name: Alternate Name' Uses the non-standard name: |
Safari Full support 6.1 Full support 6.1 Full support 4 Alternate Name' Uses the non-standard name: |
WebView Android Full support ≤37 Full support ≤37 Full support 1 Alternate Name' Uses the non-standard name: |
Chrome Android Full support 26 Full support 26 Full support 18 Alternate Name' Uses the non-standard name: |
Firefox Android
Full support 51 |
Opera Android Full support 12.1 Full support 12.1 Full support 14 Alternate Name' Uses the non-standard name: Alternate Name' Uses the non-standard name: |
Safari iOS Full support 7 Full support 7 Full support 3.2 Alternate Name' Uses the non-standard name: |
Samsung Internet Android Full support 1.5 Full support 1.5 Full support 1.0 Alternate Name' Uses the non-standard name: |
transitionrun event
|
Chrome
Full support 74 |
Edge
Full support ≤79 |
Firefox
Full support 53 |
IE
? |
Opera
Full support 62 |
Safari Full support 13.1 Full support 13.1 Full support 12 Disabled' From version 12: this feature is behind the |
WebView Android
Full support 74 |
Chrome Android
Full support 74 |
Firefox Android
Full support 53 |
Opera Android
Full support 53 |
Safari iOS Full support 13.4 Full support 13.4 Full support 12 Disabled' From version 12: this feature is behind the |
Samsung Internet Android
Full support 11.0 |
transitionstart event
|
Chrome
Full support 74 |
Edge
Full support ≤79 |
Firefox
Full support 53 |
IE
? |
Opera
Full support 62 |
Safari Full support 13.1 Full support 13.1 Full support 12 Disabled' From version 12: this feature is behind the |
WebView Android
Full support 74 |
Chrome Android
Full support 74 |
Firefox Android
Full support 53 |
Opera Android
Full support 53 |
Safari iOS Full support 13.4 Full support 13.4 Full support 12 Disabled' From version 12: this feature is behind the |
Samsung Internet Android
Full support 11.0 |
| Chrome
Full support 19 |
Edge
Full support 79 |
Firefox
No support No |
IE
No support No |
Opera
No support No |
Safari
Full support 6 |
WebView Android
Full support 4.4 |
Chrome Android
Full support 25 |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support 1.5 |
Legend
- Full support
- Full support
- Partial support
- Partial support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- Experimental. Expect behavior to change in the future.'
- Experimental. Expect behavior to change in the future.
- Non-standard. Expect poor cross-browser support.'
- Non-standard. Expect poor cross-browser support.
- Deprecated. Not for use in new websites.'
- Deprecated. Not for use in new websites.
- See implementation notes.'
- See implementation notes.
- User must explicitly enable this feature.'
- User must explicitly enable this feature.
- Uses a non-standard name.'
- Uses a non-standard name.
See also
HTMLElement by Mozilla Contributors is licensed under CC-BY-SA 2.5.