DEV Community

DeChamp
DeChamp

Posted on

Node Vs Element, know the difference

If you've always wondered but never took the time to learn it, the time is now.

First start here, Steve Griffith does a great job explaining the difference between a Node vs an Element.

Steve Griffith: Nodes Verses Elements in the DOM

Then for knowing how to traverse the two and understanding the subtle differences, head over to DigitalOcean.

DigitalOcean has a great tutorial that will do a much better job explaining it in detail than I could.

DigitalOcean how to traverse the dom

If you prefer to just read the quick answer, then head here. https://stackoverflow.com/a/9979779/3247016

Let me know if this was helpful.

Top comments (0)