Added alt attribute check for img tags.