You can use the placeholder around the name:
<span id = "demo"> <h1> Title </h1> </span>
Then use the JavaScript DOM to create new values ββfor the innerHTML property.
<script type = "javascript">
setTitle = function (id, tag, title) {
var container = document.getElementById (id);
container.innerHTML = '<' + tag + '>' + title + '</' + tag + '>';
}
setTitle ('demo', 'h1', 'My Title');
</script>
source share