empty title queryselector js code example Example: queryselector var el = document.querySelector(".myclass");