+ 4
what is a node?
a Brief explanation would be appreciated.
6 Respuestas
+ 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.
+ 3
nodes are html elements
+ 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.
+ 2
everyting tag in you HTML document
+ 1
they're everything
0
nodes are elements which can be identified by their tag,id,class