Empty Alt Tag for similar-right.png

Posted in: Newspaper
Post count: 109

I am getting this in my report and would like to fix:

3 images have no ALT text

wp-content/themes/Newspaper/images/icons/similar-right.png

Where can i remove the alt? Which file, and can you remove (or fix) it also from future release?

Next <img width="6" class="td-retina right-arrow" src="http://www.mydomain.com/wp-content/themes/Newspaper/images/icons/similar-right.png" alt=""/ />

Post count: 9544

It’s not technically a real error for old HTML practice, but perhaps a true error for modern HTML5 practice. Not all images/icons need an actual alt text, only must have the alt tag itself to pass CSS standards. So, alt=”” is correct for a spacer graphic, or icon with no semantic meaning where the alt text would not provide useful info when the image does not load.

HOWEVER
I am going to request Radu actually make that a value of “right” and for the left image add “left”

e.g. alt=”left” alt=”right” as appropriate, for modern site checkers and consistency. Or, perhaps the ASCII code for left bracket and right bracket would be more semantically correct.

Some discussion on this:
http://stackoverflow.com/questions/23526791/when-is-it-acceptable-to-leave-the-alt-text-empty-on-an-html-image-if-ever

  • This reply was modified 11 years by simchris.
  • This reply was modified 11 years by simchris.
Post count: 109

I would to have as many errors disappear as possible. Do you know what file and line I can make a quick edit in, to relieve those errors?

Thanks so much.

Post count: 9544

I have no idea. You could so a search of the folders for the theme on your local PC to locate that block of text, probably.

Post count: 6600

Hi,


@mboydnv
You can find theme here: http://screencast.com/t/I2Q6PY75A2

Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.