document.querySelector('[hello="hi"]') // First element document.querySelectorAll('[hello="hi"') // Get all elements (returns a array)