From 237c610f1938a81da3aaee8c55a462a883ccdf7c Mon Sep 17 00:00:00 2001 From: caner <91554861+canerdev@users.noreply.github.com> Date: Wed, 23 Feb 2022 12:49:11 +0300 Subject: [PATCH] Update 21_day_dom.md --- 21_Day_DOM/21_day_dom.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/21_Day_DOM/21_day_dom.md b/21_Day_DOM/21_day_dom.md index fd56208..2db6f60 100644 --- a/21_Day_DOM/21_day_dom.md +++ b/21_Day_DOM/21_day_dom.md @@ -74,7 +74,7 @@ We can access already created element or elements using JavaScript. To access or #### Getting elements by tag name -**_getElementsByTagName()_**:takes a take name as a string parameter and this method returns an HTMLCollection object. An HTMLCollection is an array like object of HTML elements. The length property provides the size of the collection. Whenever we use this method we access the individual elements using index or after loop through each individual items. An HTMLCollection does not support all array methods therefore we should use regular for loop instead of forEach. +**_getElementsByTagName()_**:takes a tag name as a string parameter and this method returns an HTMLCollection object. An HTMLCollection is an array like object of HTML elements. The length property provides the size of the collection. Whenever we use this method we access the individual elements using index or after loop through each individual items. An HTMLCollection does not support all array methods therefore we should use regular for loop instead of forEach. ```js // syntax