document.getElementById("myH2").style.color = "#ff0000"; document.getElementById("myP").style.color = "magenta"; document.getElementById("myDiv").style.color = "lightblue";
document.getElementById("yourInputID").style.color = 'the color of your choice';