TechCodex@programming.dev to Programmer Humor@lemmy.mlEnglish · 1 year agoJavascript can create atomic bombsprogramming.devimagemessage-square64fedilinkarrow-up1660
arrow-up1660imageJavascript can create atomic bombsprogramming.devTechCodex@programming.dev to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square64fedilink
minus-squareRikudou_Sage@lemmings.worldlinkfedilinkEnglisharrow-up2·1 year agodocument.querySelector('.whatever').style.color = "red"; Don’t recommend, though.
minus-squareexscape@kbin.sociallinkfedilinkarrow-up2·1 year 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”.