P element with class="child" in first div with class="example". P's index is 0, and Div's index is 0.

First P element with class="child" and "color" in second div with class="example". P's index is 0, and Div's index is 1.

Second P element with class="child" and "color" in second div with class="example". P's index is 1, and Div's index is 1.

test

test