From 23bb9136b2f2c2d85fd0cf0cb21b3ef1e917b9ff Mon Sep 17 00:00:00 2001 From: samrat014 <59047039+samrat014@users.noreply.github.com> Date: Wed, 6 Apr 2022 17:13:43 +0545 Subject: [PATCH] fixed typo --- 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 5955c51..c87a6a5 100644 --- a/21_Day_DOM/21_day_dom.md +++ b/21_Day_DOM/21_day_dom.md @@ -351,7 +351,7 @@ As you have notice, the properties of css when we use it in JavaScript is going ### Exercise: Level 1 1. Create an index.html file and put four p elements as above: Get the first paragraph by using **_document.querySelector(tagname)_** and tag name -2. Get get each of the the paragraph using **_document.querySelector('#id')_** and by their id +2. Get each of the the paragraph using **_document.querySelector('#id')_** and by their id 3. Get all the p as nodeList using **_document.querySelectorAll(tagname)_** and by their tag name 4. Loop through the nodeList and get the text content of each paragraph 5. Set a text content to paragraph the fourth paragraph,**_Fourth Paragraph_**