I am building a multilingual WordPress website and I am using YoastSEO plugin.
I am missing alt and title attributes on my images, but I’m not sure if I should add them, since I’ll have at least three languages? Maybe add them in English?
Any tips?
Best regards!
2
Answers
Alt tags are required for valid HTML markup. More detail at docs.webplatform.org. What you could do is use alt attributes the 16 word limit to add multiple language. e.g.
There is also a WordPress plugin called qTranslate X which allows for dynamic multilingual text replacement at the front-end using this format.
Otherwise your other option is to do as @David suggests above and serve up multiple versions of your site.
Hope this helps.
The
title
tag is outdated. You just need to add an alt in English.Google will translate your image’s
alt
tags. You can Google “سیب” and see images without “سیب” inalt
but have “apple” in theiralt
tags.