getElementsByTagNameNSnamespaceURI
getElementsByTagName is a DOM method available on the Document and Element interfaces. It retrieves all descendant elements with a given tag name and returns them as a collection. In HTML documents the tag name matching is case-insensitive, and the result is a live collection that updates as the document changes.
Usage: document.getElementsByTagName('div') returns all div elements in the document; document.getElementsByTagName('*') returns all descendant elements; you can
Variants and considerations: getElementsByTagNameNS(namespaceURI, localName) provides namespace-aware tagging, commonly used in XML documents. In most HTML