W3Schools example
The DOM is very useful
This example demonstrates how to use the getElementsByTagName and node list
Your Result: