HTML DOM Element previousElementSibling
HTML DOM Element previousElementSibling Property
The previousElementSibling property is a read-only property and it returns the previous element in the same tree level.
Syntax:-
Its syntax is:- element.previousElementSibling
Return:-
Its return is:- previous sibling else null