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 Italic Fonts

HTML h Header Usage

Using HTML <em>

Making HTML Paragraphs

Making HTML Bold