Do search engines prioritize file names or "alt" attributes in images?

4

For example, an image named "xicara-de-cafe.jpg" without the alt attribute has more weight than a file named "5ecaac15bb162ea847e1f4771a214b74.jpg" with the alt="Xícara de café" attribute?

Respectively:

<img src="/uploads/xicara-de-cafe.jpg" />

<img src="/uploads/5ecaac15bb162ea847e1f4771a214b74.jpg" alt="Xícara de Café" />

Which of the two codes will be best indexed by search engines?

  

Just out of curiosity, the second file name is the first MD5 hash.

    
asked by anonymous 12.04.2017 / 21:37

1 answer

2

The search engine indexing algorithm gives a weight for each item and another weight for the combination of items. It would be best to have both. The name of the target file and the most complete alt. If it had to choose, it would be according to the length of the text. Shorter in title, longer in ALT.

    
13.04.2017 / 02:29