Use the getElementsByTagName() method to return an HTMLCollection.

The number of P elements on this page: