document.queryselectorall add css code example Example: select all elements javascript var elements = document.getElementsByTagName("*");