TechCodex@programming.dev to Programmer Humor@lemmy.mlEnglish · 3 years agoJavascript can create atomic bombsprogramming.devimagemessage-square70linkfedilinkarrow-up1660arrow-down153
arrow-up1607arrow-down1imageJavascript can create atomic bombsprogramming.devTechCodex@programming.dev to Programmer Humor@lemmy.mlEnglish · 3 years agomessage-square70linkfedilink
minus-squareRikudou_Sage@lemmings.worldlinkfedilinkEnglisharrow-up1arrow-down1·3 years agodocument.querySelector('.whatever').style.color = "red"; Don’t recommend, though.
minus-squareexscape@kbin.sociallinkfedilinkarrow-up2·3 years 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”.