document.queryselectorall tag name code example Example: class query css js all var matches = document.querySelectorAll("div.note, div.alert");