node.nextElementSibling returns the element immediately following the specified element, in the same tree level. This property specifically returns Element nodes, skipping over any text nodes or comments that might be between elements. There's also node.nextSibling which returns the next node of any type (including text nodes and comments). Using nextElementSibling is generally more useful when you're working with the structure of elements and want to ignore whitespace text nodes.