从以下的帖子中可以得出一个结论:
google完全忽略网页中非链接图片的alt文字,不知道是不是真的如此。至少得到肯定的是链接图片的alt文字对google有效,应该在其中加入描述被链接页面(注意不是本页面)的关键词 。
-q
what happens when we use the same keyword within all alt tags, after or before the actual image description. my question is: would google pick this up as spam?
-a
first of all, the only alt attribute the search engines pay attention to are the ones on linked images. the alt for a non-linked image is ignored.
now, if youre giving all of them the same alt attribute (its technically not a tag), what youre doing is describing every page youre pointing to the same way, so youre kind of sending the wrong message. if every linked images alt is “pet supplies” then no page is going to stand out from the crowd as being more about pet supplies than any other, so its a self-defeating activity.
what you should be doing is describing the page youre pointing to with the linked image, using that pages keywords when it makes sense to do so. remember that the alt attribute isnt just for search engines (nothing is, actually). its supposed to be for users who cant see the image.
