What's the difference between Element, HTMLElement, HTMLHtmlElement?

Mar.06,2021

to put it more colloquially, element is a html element, or tag, and each tag is a node in dom. There is an element,document,characterData,attr.document under the node, node that represents an html or xml document, and the element type represents an element in the document. HTMLElement and HTMLDocument only draw a picture of the HTML document and element
:


the HTMLElement object represents an element in the HTML. The
HTMLElement object inherits the standard properties of the Element object and implements some non-standard properties.
HTMLBodyElement is an old version that can be discarded
. They can all be regarded as DOM (the document object model), DOM is the recommendation of the W3C (World wide Web Consortium).

Menu