getElementsByTagName() returns a live NodeList of all elements with a given HTML tag name (e.g., "div", "p", "span", "li").

✔ Searches the entire document or a specific element
✔ Returns elements in document order
✔ The result updates automatically if the DOM changes (live NodeList)

Categorized in:

Javascript, JS DOM,