firstElementChild

firstElementChild returns the first child that is an element; otherwise null.

Syntax

element = node.firstElementChild

Examples

1

2

3

4

Internal

append

children

lastElementChild

prepend

querySelector

querySelectorAll

replaceChildren

External

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu