I am going through a large website (1600+ pages) to make it pass Priority 1 W3C WAI. As a result, things like image tags need to have alt attributes.
What would be the
I wrote a simple code for this without Regex
let arr = [] $('img') .filter(function() { arr.push(this.alt) }) document.write(arr.filter(a=>!a).length + ' img without alt tag')