Зміна CSS
<p id="demo">JavaScript може змінювати стилі CSS.</p>
<button type="button" onclick="document.getElementById('demo').style.fontSize='35px'">Змінити fontSize!</button>
d1.style.display = "none"
d2.style.display = "block"
<p id="demo">JavaScript може змінювати стилі CSS.</p>
<button type="button" onclick="document.getElementById('demo').style.fontSize='35px'">Змінити fontSize!</button>
d1.style.display = "none"
d2.style.display = "block"