W3Schools example

The DOM is very useful

This example demonstrates how to use the nodeList length property