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

Making HTML Bold

HTML h Header Usage

Making HTML Paragraphs

Making HTML Italic Fonts

Adding HTML Line Breaks