previousElementSibling

Returns the first preceding sibling that is an element, and null otherwise.

MDN Reference