I am using the Pinterest "Pin It" Button plugin so I can add to my posts/images. However, part of the Pin In button uses this code:
<img border="0" class="pib-count-img" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" />
There is no ALT attribute for the image and my blog is failing HTML5 validation on http://validator.w3.org because of this. I keep getting the error: 'An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.'
How can I add the ALT attribute (
alt="Pin It" ) to the image used for the Pin It button so that my blog pages pass validation?
[ Note: I've tried jQuery
$('.pib-count-img').attr('alt', 'Pin It'); but with no success. ]