<html>
<body>
<h1>Мой первый JavaScript</h1>
<p id="demo">JavaScript может изменить стиль элемента HTML.</p>
<script>
function myFunction() {
document.getElementById("demo").style.fontSize = "25px";
document.getElementById("demo").style.color = "red";
document.getElementById("demo").style.backgroundColor = "yellow";
}
</script>
<button type="button" onclick="myFunction()">Нажми меня!</button>
</body>
</html>