I know that the alt=""
attribute is recommended for SEO propososes, but I also heard that put the description inside a div
and hide with text-indent:-9999px
or font-size:0;
is a good practice for SEO.
So there is any difference between use:
<img alt="Descripition" />
or
<div style="background: url('path/to/img')>Description</div>"
font-size:0
and thinks your are spamer:) Such technics is against guidelines - don't do it, nottext-indent:-666
, neitherz-index:-666;
. Writealt="" title=""
- it should be enough.