<h1 id="title">Hello world!</h1>
const title = document.getElementById("title");
console.log(title);
title.style.color = "red";

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.