Question: Given the following HTML, write a simple bit of JavaScript code that will DELETE ALL OF THE TAGS ON THE PAGE. Quiz I'm a

Given the following HTML, write a simple bit of JavaScript code that 

Given the following HTML, write a simple bit of JavaScript code that will DELETE ALL OF THE TAGS ON THE PAGE. Quiz I'm a Heading I'm a paragraph I'm special I'm also a paragraph Footer! HINT: You'll want to use the .remove() method which exists on all DOM Elements. If called on an element, it deletes itself. HINT: You can accomplish this with 1-2 lines of code with the right selector method and the forEach() method. HINT: I'm not proctoring this quiz, open up Google and do some research. Test out your code on jsfiddle.net.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To delete all the p tags on the given HTML page using JavaScript you can use the following script Th... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!