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.