</h1>
</div>

<script>
    let btns = document.getElementsByClassName("btn");
    for (let i = 0; i < btns.length; i++) {
        btns[i].addEventListener("click", () => {
            for (let g = 0; g < btns.length; g++) {
                btns[g].className = "btn";
            }
            btns[i].className = "btn active";
            document.querySelector("body").className = btns[i].id
        })
    }
</script>
</body>
</html>
