Hacker News new | past | comments | ask | show | jobs | submit login

I thought favicon is W3C standard. It's not standardized yet! I can't find any specs for it!



You're supposed to be using a <link> tag. See http://www.whatwg.org/specs/web-apps/current-work/multipage/...

This has some advantages over just blindly loading one file (no HTTP request if there's no image, though browsers still all try /favicon.ico nowadays) and you get to chose where to place the icon (probably together with other images of your site).

I think by now all browsers support <link rel="shortcut icon"> but all of them still request /favicon.ico so by adding that you a) don't have to change your markup for the icon and b) you silence the error log of your web server - all in one go.


> This has some advantages over just blindly loading one file (no HTTP request if there's no image, though browsers still all try /favicon.ico nowadays) and you get to chose where to place the icon (probably together with other images of your site).

Also, browsers which aren't MSIE can use PNG, GIF (including animated) or JPEG favicons.

> I think by now all browsers support <link rel="shortcut icon">

Only rel=icon is necessary in most browser, rel="shortcut icon" is for MSIE lte 9.

> but all of them still request /favicon.ico

(if no icon is specified)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: