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 Paragraphs

Using HTML <em>

Adding HTML Line Breaks

Making HTML Italic Fonts

HTML h Header Usage