create span with javascript code example
Example: js add a tag inside span
var span = document.getElementById("span");
var a = document.createElement('a');
a.href = "http://domain.com";
span.appendChild(a);
var span = document.getElementById("span");
var a = document.createElement('a');
a.href = "http://domain.com";
span.appendChild(a);