The firstElementChild of ParentNode for JS returns the first child that is an element; otherwise null.
element = node.firstElementChild
append
children
lastElementChild
prepend
querySelector
querySelectorAll
replaceChildren
Web Hypertext Application Technology Working Group (WHATWG)