Skip to content

Glossary: JavaScript in the Browser

Element node / text node

Also written: element node, text node

An element node stands for a tag, and a text node for a run of text. Line breaks between tags are text nodes too, which is why childNodes counts more than children.

Where the book teaches it

Related terms

Node