TechCodex to Programmer Humor@lemmy.mlEnglish • 11 months agoJavascript can create atomic bombsprogramming.devimagemessage-square69fedilinkarrow-up1653arrow-down153
arrow-up1600arrow-down1imageJavascript can create atomic bombsprogramming.devTechCodex to Programmer Humor@lemmy.mlEnglish • 11 months agomessage-square69fedilink
minus-squareRikudou_SagelinkfedilinkEnglish1•11 months agodocument.querySelector('.whatever').style.color = "red"; Don’t recommend, though.
minus-squareexscapelinkfedilink1•11 months agoSure, but setting the .style attribute could really be argued as using CSS, just with a different interface. W3Schools refers to this as “inline CSS”.
document.querySelector('.whatever').style.color = "red";
Don’t recommend, though.
Sure, but setting the .style attribute could really be argued as using CSS, just with a different interface. W3Schools refers to this as “inline CSS”.