<div id="title">
</div>
var title = document.querySelector('#title');
title.innerHTML = '<h2> This is my title </h2>';
title.style.fontFamily ='Arial';
title.style.color = 'red';
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.