JSFiddle - React, Tailwind, and code Playground

by kthornbloom

JavaScript

var images = document.querySelectorAll("img");
for(var i = 0;i < images.length;i++){
  var currentAlt = images[i].attr('alt');
  if(!currentAlt){
  	// add an alt
  }
}