css for all elemnet code example Example: selet all elemnts var elems = document.body.getElementsByTagName("*");