<link rel="shortcut icon" href="/path/to/favicon.ico" />
The same goes for robots.txt, sitemap.xml, crossdomain.xml, apple-touch-icon.png (really?) and all the other poorly conceived ideas that fill web server logs with unnecessary 404 errors. <link rel="shortcut icon" href="/path/to/favicon.ico" />
The same goes for robots.txt, sitemap.xml, crossdomain.xml, apple-touch-icon.png (really?) and all the other poorly conceived ideas that fill web server logs with unnecessary 404 errors.Personally, I'd rather require the files to be in known locations than force every client that wants the information to make a request and parse HTML.
Of course, many people end up putting an explicit reference in anyway, so, eh. Probably not that helpful.
The 404 errors in particular seem like a very Machiavellian way to get sites to support your browser's features. You have to wonder how many people add in a favicon or iTouch icon just to shut up the errors up.
No, the convention is that a favicon.ico file is found in the root of the site and that you can instead locate an icon by supplying a URL. Sucks as a convention.
Interestingly Google on their search homepage (for me at least) are using a microdata markup and not serving an explicit icon:
<meta itemprop="image" content="/images/google_favicon_128.png">
See eg http://dev.w3.org/html5/md/#names:-the-itemprop-attribute