From 67bee2678faa4ab865e3fdfdceb6875995789742 Mon Sep 17 00:00:00 2001 From: Ashwin Anil <54780642+ASHWIN776@users.noreply.github.com> Date: Tue, 18 May 2021 13:43:19 +0530 Subject: [PATCH] Spelling error in line 217 --- 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..fd56208 100644 --- a/21_Day_DOM/21_day_dom.md +++ b/21_Day_DOM/21_day_dom.md @@ -214,7 +214,7 @@ const titles = document.querySelectorAll('h1') titles[3].textContent = 'Fourth Title' ``` -#### Adding Text Content using innHTML +#### Adding Text Content using innerHTML Most people get confused between _textContent_ and _innerHTML_. _textContent_ is meant to add text to an HTML element, however innerHTML can add a text or HTML element or elements as a child.