• Rikudou_Sage
    link
    fedilink
    English
    011 months ago

    document.querySelector('.whatever').style.color = "red";

    Don’t recommend, though.

    • exscape
      link
      fedilink
      211 months ago

      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”.