We are having lot of w3 validation errors in my website and all are related to the images alt tags as below:
Error: An img element must have an alt attribute, except under certain conditions.
Is there any way to add alt tags for the images to solve these w3 validation errors.
We are using Magento Version: 2.1.2
Anyone have a solution for this..Please suggest me..
Are you talking about the alt text?
Yes..you are right..I am asking the same..
We have tried to add the alt text but it was not getting for my images.
Can you suggest any thing we need to do in product configuration(creating/editing) to get "Alt" attributes for product images.
I've made a new test and the alt text works right.
Is this what you are looking for?
I am looking for this kind of thing in magento 1.9
Please suggest me, how can i do that,
so that i can fetch the same alt text for the respective product image.
In my instance of Magento (2.1.3), adding the alt text the way you described creates a caption and not alt text.
This is what it's adding to the code:
"caption":"Organic Bergamot Essential Oil, 5 ml"