element.parentElement returns the parent Element of the specified element, or null if the element has no parent or if the parent isn't an Element node. There's also element.parentNode which returns any parent node (which could be an element, document, or document fragment). The distinction matters in cases where an element might be parented by a non-element node like a DocumentFragment during template operations.