how do you change Css with Js without having "Style" found in Html?
For example, I dont want the styling in Html cuz this is what the lesson tells us when changing elements in Js (down below): ââââââââââââââââââââââââââââ Html <body> <div id=a style="width=10px"> some text </div> <body> Css Js window.onload function() { var b = document .getElementById("a"); b.style.width = "20px"; âââââââââââââââââââââââââââââ But, I want Js to change styling in Css not in Html (down below): âââââââââââââââââââââââââââââ Html <body> <div id=a> some text </div> <body> Css #a { width:10px; } Js window.onload function() { var b = document .getElementById("a"); b.style.width = "20px"; ââââââââââââââââââââââââââââ