HTML DOM Element firstElementChild
HTML DOM Element firstElementChild Property
The firstElementChild property is used to return the first child element of the specified element and is read-only property. It is the same as children[0].
Syntax:-
Its syntax is:- element.firstElementChild
Return:-
Its return is:- first-child element of an element else null