
## HTMLCollection class

The [`HTMLCollection`](/html/python-net/aspose.html.collections/htmlcollection) represents a generic collection of [`Element`](/html/python-net/aspose.html.dom/element).



**Inheritance:** [`HTMLCollection`](/html/python-net/aspose.html.collections/htmlcollection) → 
[`DOMObject`](/html/python-net/aspose.html.dom/domobject)



The HTMLCollection type exposes the following members:

### Properties
| Property | Description |
| :- | :- |
| [length](/html/python-net/aspose.html.collections/htmlcollection/length) | The number of nodes in the list. |



Returns the index-th item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.
### Indexer
| Name | Description |
| :- | :- |
| [index] | The index. |


### Methods
| Method | Description |
| :- | :- |
| [get_platform_type](/html/python-net/aspose.html.collections/htmlcollection/get_platform_type/#) | This method is used to retrieve ECMAScript object Type. |
| [named_item](/html/python-net/aspose.html.collections/htmlcollection/named_item/#str) | Returns the item in the collection matched specified name. |



### See Also
* module [`aspose.html.collections`](..)
* class [`DOMObject`](/html/python-net/aspose.html.dom/domobject)
* class [`Element`](/html/python-net/aspose.html.dom/element)
* class [`HTMLCollection`](/html/python-net/aspose.html.collections/htmlcollection)
