ReadonlylengthThe HTMLCollection.length property returns the number of items in a HTMLCollection.
The HTMLCollection method item() returns the element located at the specified offset into the collection.
The namedItem() method of the HTMLCollection interface returns the first Element in the collection whose id or name attribute match the specified name, or null if no element matches.
The
HTMLCollectioninterface represents a generic collection (array-like object similar to Functions/arguments) of elements (in document order) and offers methods and properties for selecting from the list.MDN Reference