An element is the most common type of node in the DOM.
When you want to do something to an element, first you need to select it.
A dom element is generally the memory representation of:
- an HTML element
- or an XML element (XHTML)
getElementsByName The document function document.getElementsByName(name) returns a NodeList collection of elements in the Document that have a name attribute with the value name in a case-sensitive manner, in tree order
See node remove
See node move
The nodes representing HTML elements inherit their interface from the HTMLElement interface.
- The HTMLElement interface holds methods and attributes related to a number of disparate features.
- The HTMLUnknownElement interface is used for HTML elements that are not defined by the HTML specification.