I was playing with some html and thought I might come across something I can use for my website. Well, while I was playing with html, I came across hiding html content and so I thought of a code that might do it. Here is my code.
<input type = "checkbox" id = "on"></input>
<button onclick = "myFunction()">Dissappear.</button>
<p id = "demo">Html is the best</p>
<script>
function myFunction(){
var b = document.getElementById("on").value
if(b =="on"){
document.getElementById("demo").style.visibility = "hidden"
}
}
</script>