Learn the key differences between HTMLCollection and NodeList. HTMLCollection is an array-like object that has a collection of document elements. A NodeList object is a collection of document nodes (element nodes, attribute nodes, and text nodes). 1. Methods That Return HTMLCollection & NodeList HTMLCollection These two methods return the HTMLCollection object. getElementByTagName() and getElementsByClassName()