DEV Community

DeChamp
DeChamp

Posted on

4

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)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more