.children

HTMLCollection ParentNode.children

A property holding the child elements of an element. This property is read-only - it cannot be set.

let children = node.children;

See also: .childNodes

Example

HTML:

<p>
    All
    <strong>large</strong>
    goats
    <em>are</em>
    delicious!
</p>

JavaScript:

let children = document.query("p").children;

Result is an HTMLCollection of length two, consisting of the <strong>large</strong> element and the <em>are</em> element.