HTML DOM Element firstChild
HTML DOM Element firstChild Property
The firstChild property is used to return first child node of a node. It is a read-only property and returns a node object. It is similar to childNodes[0].
Syntax:-
Its syntax is:- element.firstChild OR node.firstChild
Return:-
Its return is:- the first child of a node else null