T
T
thehighhomie2015-11-14 00:13:57
JavaScript
thehighhomie, 2015-11-14 00:13:57

DOM JS nodes and elements?

What is the difference between nodes and elements like nodeName and tagName? It doesn't come through.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Ineshin, 2015-11-14
@thehighhomie

Nodes are different: tags, white space, text, comments, etc. This is a broader concept. Well, tags are just some of the nodes.
Explore: https://developer.mozilla.org/en-US/docs/Web/API/N...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question