how to hide the div in html code example
Example 1: css hiddden
.classname {
visibility: hidden;
}
Example 2: toggle element javascript
document.querySelector("#test").hidden = true;
document.querySelector("#test").hidden = false;
.classname {
visibility: hidden;
}
document.querySelector("#test").hidden = true;
document.querySelector("#test").hidden = false;