how to set css from js code example
Example 1: how to change css with js
document.querySelector('h1', container).style.backgroundColor = 'red';
Example 2: how to give css style in javascript
document.getElementById("myH1").style.color = "red";
document.querySelector('h1', container).style.backgroundColor = 'red';
document.getElementById("myH1").style.color = "red";