2 ms·
Please note that there is a wrong suggestion in the site: > Why is favicon.ico not declared in the HTML code? > Looking for some sample favicon code, you'
by gioele 12y ago
Please note that there is a wrong suggestion in the site:
> Why is favicon.ico not declared in the HTML code?
> Looking for some sample favicon code, you've probably encountered:
> <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
> Why is it not present in the code generated by RealFaviconGenerator? Because it somehow disrupts some other browsers like Chrome. And since IE looks for a file named favicon.ico anyway, the best solution is to not even talk about it. This is described by Jonathan T. Neal and Mathias Bynens.
This is a bad advice, please continue using rel="shortcut icon" to indicate where the favicon is. W3C says so [1], the WHATWG agrees (or "permits")[2], and is needed on Android [3].
[1] http://www.w3.org/2005/10/howto-favicon http://www.w3.org/2005/10/howto-favicon
[2] http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#rel-icon http://www.whatwg.org/specs/web-apps/current-work/multipage/...
[3] http://www.mollerus.net/tom/blog/2010/06/web_app_homescreen_icons_in_android.html http://www.mollerus.net/tom/blog/2010/06/web_app_homescreen_...
- maaaats 12y agoThey tell you insert 14 lines or so in your html anyway.
- michaelmior 12y agoHere's some references I found from Jonathan and Mathias. http://www.jonathantneal.com/blog/understand-the-favicon/ http://www.jonathantneal.com/blog/understand-the-favicon/ http://mathiasbynens.be/notes/rel-shortcut-icon http://mathiasbynens.be/notes/rel-shortcut-icon http://mathiasbynens.be/notes/touch-icons http://mathiasbynens.be/notes/touch-icons