<!DOCTYPE html>
<html>
<body>
<h1>What Can JavaScript Do?</h1>
<p>JavaScript can show hidden HTML elements.</p>
<p id="demo" style="display:none">Hello JavaScript!</p>
<button id = hi type="button" onclick="document.getElementById('demo').style.display='block'">Click Me!</button>
</body>
</html>
Thanks
Happy programming!
<html>
<body>
<h1>What Can JavaScript Do?</h1>
<p>JavaScript can show hidden HTML elements.</p>
<p id="demo" style="display:none">Hello JavaScript!</p>
<button id = hi type="button" onclick="document.getElementById('demo').style.display='block'">Click Me!</button>
</body>
</html>
Thanks
Happy programming!
No comments:
Post a Comment