
요소.style.속성명
.style과 css 속성을 이용const title = document.querySelector("#title")
title.onclick = () => {
title.style.backgroundColor = "black"; // title의 배경색 수정
title.sytle.color = "white"; // title 글자색 수정
}
html 요소에 있는 class 속성을 쉽게 다를 수 있게 해주는 속성
DOMTokenList라는 객체 반환
JavaScript를 사용하면 클래스 스타일에 다양한 효과를 만들 수 있다

