The querySelector of ParentNode for JS returns the first element of the node that matches the selector(s).
node.querySelector(selectors)
Patterns that match elements in a tree structure.
append
children
firstElementChild
lastElementChild
prepend
querySelectorAll
replaceChildren
Web Hypertext Application Technology Working Group (WHATWG)