1

Looking at the source for Skype.com, I cannot find any <link rel="shortcut icon"> tag (or anything similar), and yet, the icon is clearly showing up in FireFox. Where are they defining the favicon?

1

2 Answers 2

5

Unless otherwise defined, the browser will look for the favicon in the root with the filename favicon.ico

As far as I know you need the exact name favicon.ico for the browser to detect it. That might be different in other browsers, but if you want to use .png instead of .ico for some reason it would be safer to call it out manually for browser compatibility even if the newer browsers are seeing it.

2
  • Does that only apply to ico files, or will browsers also check for favicon.png if none is defined in the page's source?
    – IQAndreas
    Nov 13, 2013 at 2:23
  • Thanks, could you add that extra information to the answer, and I will go ahead and accept it?
    – IQAndreas
    Nov 13, 2013 at 2:35
4

By default browsers will look in the root web directory for favicon.ico when a path is not explicitly specified by a <link> tag.

3
  • Does that only apply to ico files, or will browsers also check for favicon.png if none is defined in the page's source?
    – IQAndreas
    Nov 13, 2013 at 2:25
  • Last I heard it was only .ico files but modern browsers might look for a variety of file types. I'm not entirely sure.
    – John Conde
    Nov 13, 2013 at 2:26
  • 1
    According to my server logs, they are still only looking for favicon.ico (I don't have any favicon.png, so a lot of 404's would be logged, lol.)
    – user1932079
    Nov 13, 2013 at 8:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.