background-image in div – Google indexing?

后端 未结 3 498
慢半拍i
慢半拍i 2021-01-15 20:19

I\'ve a list of empty divs and dynamically inserting a background image – so at first, their background-image: url(); property is completely empty. With some event, it\'s ba

3条回答
  •  情话喂你
    2021-01-15 20:43

    Googlebots will certainly index IMG ALT attributes. Whether or not they subsequently detect the fact that alt texts contain URLs and go looking at them, I really don't know.

    This seems to me an abuse of the alt attribute, frankly: DIVs shouldn't (don't) have ALT attributes, and even if they did, this is not what they are for.

提交回复
热议问题