---
title: "Discussion on \"HTML Collection vs Nodelist\" | Hashnode"
description: "Discussion on \"HTML Collection vs Nodelist\". Both are array-like objects but they differ in some areas\nHTML Collection\n\nis a collection of element nodes\nis returned by 'getElementsByClassName' and 'getElementsByTagName'\n\nNodelist\n\ncontains all types of nodes: element nodes, text nodes, etc\nis r..."
url: "https://hashnode.com/posts/html-collection-vs-nodelist/657ed955ce6ba5ed676b6f7e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [HTML Collection vs Nodelist](https://justmyahia.hashnode.dev/html-collection-vs-nodelist?utm_source=hashnode&utm_medium=feed)

Both are array-like objects but they differ in some areas HTML Collection is a collection of element nodes is returned by 'getElementsByClassName' and 'getElementsByTagName' Nodelist contains all types of nodes: element nodes, text nodes, etc is r...

Dec 17, 2023 · 1 min read · justmyahia.hashnode.dev  
Read the article

## Written by

[Nuclear](https://hashnode.com/@itsmohamedyahia)

@itsmohamedyahia · Egypt

  
[View profile](https://hashnode.com/@itsmohamedyahia)

Aspiring Frontend Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
