es6 add mutiple styles to element code example
Example 1: setting multiple styles in javascript
document.getElementById("myElement").style.cssText = "display: block; position: absolute";
Example 2: set multiple attributes css javascript
document.getElementById("myElement").style.cssText = "display: block; position: absolute";