So i just copy&pasted the code from w3schools "Toggle Hide and Show"
<script>
function myFunction() {
var x = document.getElementById("myDIV");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
</script>
and
<button onclick="myFunction()">Tutorial</button>
<div id="myDIV">
<p>Rules blablablabla.</p>
</div>
really simple code but i'm not good with javascript, i want the div to be hidden at start and then when i click the button, it shows the div. Sorry for a such an amateur question and thanks !