change html tag with javascript color code example
Example 1: javascript change color
var span = document.getElementsByTagName("span")[0];
span.style.color = "red";
Example 2: how to change css using javascript
document.getElementById("myText").className = "anyNewClass"