+ 4

what is a node?

a Brief explanation would be appreciated.

31st Jul 2016, 10:53 AM
Harish Kolliparat
Harish Kolliparat - avatar
6 Answers
+ 13
When a browser loads an HTML page, it creates a model of that page called a DOM tree, and stores it in the browser's memory. A DOM node is every element, attribute, and piece of text in the HTML. At the top of this DOM tree is the document node, which is the parent of all nodes and these are descendants of the document node. Relationships between the document and all of the element nodes are described using the same terms as a family tree: parents, children, siblings ancestors, and descendants.
31st Jul 2016, 2:38 PM
ZinC
ZinC - avatar
+ 3
nodes are html elements
31st Jul 2016, 5:33 PM
Kahuma Solomon
Kahuma Solomon - avatar
+ 3
Nodes are the elements, which are connected with each other in some manner. in any tree the top node is called root node, and root node doesn't have any siblings..they only have child nodes. for more information read the tree and graph of data structures, it applies everywhere.
18th Sep 2016, 3:06 PM
Himanshu Manjhi
Himanshu Manjhi - avatar
+ 2
everyting tag in you HTML document
1st Oct 2016, 6:54 AM
Oleg Merguriev
Oleg Merguriev - avatar
+ 1
they're everything
21st Aug 2016, 9:21 PM
vahid eivazy rad
vahid eivazy rad - avatar
0
nodes are elements which can be identified by their tag,id,class
7th Nov 2018, 8:24 AM
Nitya Srivastava