What are the different properties of Nodes? - DOM
What are the different properties of Nodes?
- Node is used in HTML DOM as an object that points to the other element in the tree and gets generated by the root node.
- Nodes in an object form have some methods and properties that allow the accessing of the JavaScript to be used for modification.
The node properties include the following things:
- nodeName: is in the read only format and it is the parameter that acts like a tag name. It provides the information of attribute node and other nodes.
- nodeValue: is the way to specify the value of each individual node. The node value can be element wise or it can be text wise or other nodes value can be given.
- nodeType: provides a way to return the type of the node used and that is also in the read only format.