The nodeName, nodeValue, and nodeType properties contain information about nodes.
In the HTML DOM, each node is an object.
Three important node properties are:
The nodeName property specifies the name of a node.
Note: nodeName always contains the uppercase tag name of an HTML element.
The nodeValue property specifies the value of a node.
The Below example retrieves the text node value of the <p id="intro"> tag:
The nodeType property returns the type of node. nodeType is read only.
The most important node types are:
Your Query was successfully sent!