<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';

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.