Child notes provide different types of information about node type. We can easily check that by typing on note child.
Here is the information about node child number means.
- 1 – its mean nodeType is an HTML element.
- 2 – Its mean nodeType is an attribute.
- 3 – Its mean nodeType is a Text node
- 8 – Its mean nodeType is a comment node
- 9 – Document type itself
- 10 – Doctype
Children nodes provide only HTML elements.