Similar to the ad class method we can also remove a class from an HMO element.
Let's modify our last script by adding a class to the heading In Paragraph elements.
We finished adding our class and so if I preview the page
we can see that our text both two headings and the text lines are read.
Now the objective here is to remove this class from any heading H1 H2 or paragraph elements so to do
that I'm going to remove.
We don't need this anymore because we're no longer adding a class to the div.
I'm going to replace add with remove
and I'm going to save the file.
Now when I refresh the page and click the Add class button
you can see that the red dot class has been removed now and just to avoid any confusion what I'll do
is I'll just change add to remove on the button label.
I'll just do that again.
It's refreshing the page click the removed class button and we can see that the class has been removed.