+ 16
Please explain this quetion - What is childNode ? And what is Nodes ?
What is the difference between children and childnode...?
6 Antworten
+ 10
Children is a property of an Element. Only Elements have children, and these children are all of type Element.
However ChildNodes is a property of Node. ChildNodes can contain any node.
+ 14
Mawlud Fariq thank you for information
+ 12
Nandyzooker can you explain any example ?
+ 3
Child node is nothing but a sub node of a parent node carrying the same properties of its parent node.children is different from child node..say...an object in a class can have any number of children.
+ 2
An example of a node is the <html> element and a childnode would be anything that goes in it such as the <head> or <body> element
- 1
child node is anything that goes in such as the body head and element