Programming Code Center(PCC)
[JS]

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

File Name : index.html

<!DOCTYPE html>
<html>
<body>

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

<p>JavaScript can show hidden HTML elements.</p>

<p id="demo" style="display:none">Hello JavaScript!</p>

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

</body>
</html> 

Output :

What Can JavaScript Do?

JavaScript can show hidden HTML elements.