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