My developer has created a product page with images managed in this way:

xmlns="http://www.w3.org/2000/svg" class="original">
<image width="100%" height="100%" preserveaspectratio="xMidYMid slice"

I can't use alt attribute for SEO here because it is not allowed in SVG. Can I add another hidden image like:

<img src="http://www.sitename.it/letto_wind_overview.jpg"
alt="letto wind">

with display:none attribute to make the alt attribute readable by Googlebot? Would that be good practice or could Google penalize me?

  • What makes you think Googlebot will take notice of an entirely hidden element? If an element is hidden and is never displayed then I would expect Googlebot to do its best to ignore it (at least in terms of having a positive influence on SEO). – DocRoot Mar 23 '18 at 10:16

I would not recommending hiding your images with alttext as Googlebot might consider this to be cloaking and keyword stuffing. It could be very risky.

Sources on the web are saying to use <title>alt text here</title> when using images through xlink

| improve this answer | |
  • This isn't "cloaking", since the element is presumably hidden for everyone, not just Googlebot. – DocRoot Mar 23 '18 at 10:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.