<h1 id="title">Hello world!</h1>
const title = document.getElementById("title"); console.log(title); title.style.color = "red";
This Pen is owned by kimchunyong on CodePen.
See more by @kimchunyong on CodePen
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.