ReadonlylengthThe HTMLAllCollection.length property returns the number of items in this HTMLAllCollection.
The item() method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its id or name attribute.
OptionalnameOrIndex: stringThe namedItem() method of the HTMLAllCollection interface returns the first Element in the collection whose id or name attribute matches the specified name, or null if no element matches.
The
HTMLAllCollectioninterface represents a collection of all of the document's elements, accessible by index (like an array) and by the element'sid.MDN Reference