Do most browsers automatically search for the favicon.ico?

前端 未结 2 1053
孤街浪徒
孤街浪徒 2021-01-11 15:46

I would like to know if it is necessary for me to specify it like this:




        
相关标签:
2条回答
  • 2021-01-11 15:57

    All of the major five browsers look in the site's root for a file named exactly favicon.ico, regardless of type, automatically.

    You can override this with a link element with rel="icon", or rel="shortcut icon". The latter is supported by every browser, while the former is more correct, but not recognised by Internet Explorer.

    0 讨论(0)
  • 2021-01-11 16:06

    Most browsers these days will look for a favicon.ico file on the root of the site.

    0 讨论(0)
提交回复
热议问题