From a0d588a9e4831f3b5e4690abc25afad32396ad19 Mon Sep 17 00:00:00 2001 From: jpotts7 <79330526+jpotts7@users.noreply.github.com> Date: Mon, 12 Apr 2021 10:46:41 -0400 Subject: [PATCH] Corrected a typo (take --> tag) --- 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 5755391..73d72dc 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