First p element with class="child" in a div (index 0).
Second p element with class="child" in a div (index 1).
Third p element with class="child" in a div (index 2).
Click the button to add a background color to the second p element with class="child" inside the div element.
Note: The getElementsByClassName() method is not supported in Internet Explorer 8 and earlier versions.