Diablo_xDSD ea15a3c75d restructured
Code Samples of CH8-CH11 was restructured
2024-01-19 17:37:31 +03:00

23 lines
448 B
HTML

<html>
<body>
<script>
function changeVisibility(){
document.getElementById("shape").classList.toggle("hide");
}
</script>
<style>
.hide {
display: none;
}
.square {
height: 100px;
width: 100px;
background-color: yellow;
}
</style>
<div id="shape" class="square"></div>
<button onclick="changeVisibility()">Magic!</button>
</body>
</html>