syntax for javascript style in html code example Example: document style document.getElementById("myH1").style.color = "red";