<p id="abc">아래 버튼 클릭하면 이 텍스트의 색깔과 크기가 바뀐다!</p> <button type="button" onclick="cssChange()" >이 버튼 클릭!</button> <script> function cssChange() { var x = document.getElementById("abc"); x.style.fontSize = "25px"; x.style.color = "blue"; } </script>