Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <p id="myP">This is a p element.</p> <button type="button" onclick="myFunction()">Hide content of p</button> <script> function myFunction() { document.getElementById("myP").style.visibility = "hidden"; } </script> </body> </html>