A paragraph with class="example" in div.
Another paragraph with class="example" in div.
Click the button to add a background color to the first p element in DIV with class="example" (index 0).
Note: The querySelectorAll() method is not supported in Internet Explorer 8 and earlier versions.