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)

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more