queryselector

  • Targeting methods in Javascript (querySelector)

    Targeting methods in Javascript (querySelector)

    querySelector       document.querySelector(CSS Selector) querySelectorAll  document.querySelectorAll(CSS Selector) querySelector()  The querySelector() method returns the first Element within the document that matches the…