To select all the
child elements of a particular element, we
can use the children
property.
Take a look at the example given below:
As you can see, in the console,
the children
property returns
a list of all child elements of an
element and we can access each one
of them using either brackets []
or
by looping over the list.