queryselector htmlelement javascript code example Example: queryselector document.querySelector(".example");