document queryselector tag and class code example Example: queryselector by class javascript document.querySelector(".class-name");