first_child property

first_child property

Returns the node’s first child in the tree, or null if the node has no children.

If the node is a Document, this property returns the first node in the list of its direct children.

Remarks

Reference:

DOM Standard.

Definition:

@property
def first_child(self):
    ...

See Also