queryselector name attribute

JavaScript
var matches = document.querySelectorAll("div.note, div.alert");document.querySelectorAll('[property]'); // All with attribute named "property"
document.querySelectorAll('[property="value"]'); // All with "property" set to "value" exactly.
document.querySelector(".example");
Source

Also in JavaScript: