HTMLCollection
is an interface representing a generic collection of elements (in document order) and offers methods and properties for traversing the list.
HTMLCollection
for historical reasons (before DOM4, collections implementing this interface could only have HTML elements as their items).HTMLCollection
s in the HTML DOM are live; they are automatically updated when the underlying document is changed.