Programming Code Center(PCC)
[JS]

(PCC)::[how-to-use-JavaScript-for-hide-HTML-elements-with-there-proper-output]::[js]

File Name : index.html

<!DOCTYPE html>
<html>
<body>

<h2>What Can JavaScript Do?</h2>

<p id="demo">JavaScript can hide HTML elements.</p>

<button type="button" onclick="document.getElementById('demo').style.display='none'">Click Me!</button>

</body>
</html> 

Output :

What Can JavaScript Do?

JavaScript can hide HTML elements.