1

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"
xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://www.sitename.it/letto_wind_overview.jpg"></image>

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?

1
  • 1
    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, 2018 at 10:16

1 Answer 1

1

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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