TechCodex to Programmer [email protected]English • 1 year agoJavascript can create atomic bombsprogramming.devimagemessage-square50fedilinkarrow-up1613arrow-down154
arrow-up1559arrow-down1imageJavascript can create atomic bombsprogramming.devTechCodex to Programmer [email protected]English • 1 year agomessage-square50fedilink
minus-squareRikudou_SagelinkfedilinkEnglish0•1 year agodocument.querySelector('.whatever').style.color = "red"; Don’t recommend, though.
minus-squareexscapelinkfedilink1•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”.