1
00:00:00,450 --> 00:00:06,090
Similar to the ad class method we can also remove a class from an HMO element.

2
00:00:06,090 --> 00:00:11,170
Let's modify our last script by adding a class to the heading In Paragraph elements.

3
00:00:17,150 --> 00:00:21,440
We finished adding our class and so if I preview the page

4
00:00:25,860 --> 00:00:39,880
we can see that our text both two headings and the text lines are read.

5
00:00:39,960 --> 00:00:54,620
Now the objective here is to remove this class from any heading H1 H2 or paragraph elements so to do

6
00:00:54,620 --> 00:00:55,940
that I'm going to remove.

7
00:00:55,940 --> 00:01:02,510
We don't need this anymore because we're no longer adding a class to the div.

8
00:01:02,690 --> 00:01:05,510
I'm going to replace add with remove

9
00:01:09,170 --> 00:01:14,870
and I'm going to save the file.

10
00:01:14,950 --> 00:01:19,710
Now when I refresh the page and click the Add class button

11
00:01:23,780 --> 00:01:31,840
you can see that the red dot class has been removed now and just to avoid any confusion what I'll do

12
00:01:31,840 --> 00:01:39,460
is I'll just change add to remove on the button label.

13
00:01:40,950 --> 00:01:42,500
I'll just do that again.

14
00:01:42,600 --> 00:01:50,160
It's refreshing the page click the removed class button and we can see that the class has been removed.
