What is HTMLCollection ?

The HTMLCollection interface represents a generic collection of elements (in document order) and offers methods & properties for selecting from the list.

HTMLCollection has length property which returns the number of items in the collection.

It is not possible to iterate over HTMLCollection list using forEach by default.



You May Interest

Using HTML Targets

Making HTML Italic Fonts

HTML h Header Usage

Making HTML Bold

Adding HTML Line Breaks