A h1 element

A div element

A p element.

Another p element.

A p element inside a div element.

Click the button to change the background color of all p elements in the document.

Note: The querySelectorAll() method is not supported in Internet Explorer 8 and earlier versions.