css selector in querySelector code example Example: queryselector document.querySelector(".example");