Element Type
In addition to the Document Type, Element type of Web programming would be the most common type of. Element node has the following characteristics;
parentNode probably Document or Element;
Its child nodes may be Element, Text, Comment, ProcessingInstruction, CDATASection or EntityReference
To access the element tag name, you can use the nodeName attribute, you can use tagName property; these two properties will return the same value. For example in the following elements:
<div id="myDiv"></div>
So we can get this element and its label name like the following
var div=document.getElementById("myDiv");
alert(div.tagName);
alert(div.tagName==div.nodeName);
HTML element
HTMLElement All HTML element by type of representation, not directly through this type, but also by its subtypes