In the last exercise we worked with the element selector.
We hid all the paragraph elements in our HMO document with the click of a button but what if we only
wanted to hide a specific element in our document.
We can do this by assigning an I.D. to the element we want to perform the action on.
We then specify the I.D. selector in our script let's change the last script so that when the button
is clicked only the heading is hidden.
First we need to add an I.D. to the H to type let's call the I.D. had.
Now we can amend the selector in our script to hide only the element that contains the head I.D. to
do this.
Start with the pound sign and type the name of the I.D. selector
and that's it.
We can now save our file and preview it in our browser
so we can see that now when we clicked the hide button only the text in the H2 tags disappear.