Why use a GIF favicon? Is that for iPhone and iPad can read it?
also, beware that gif favicons do not work in all versions of IE.
.ico
files are the most widely supported. Wikipedia has a list of which browsers support which formats.
According to that list FireFox and Opera are the only ones that support animated GIFs, and IE doesn't support GIF at all.
GIF
favicons are sometimes used so that they can be animated, but ICO
s have wider browser support. If you are trying to make favicons specifically for iPhone/iPod Touch, you might want to take a look at this:
http://iboughtamac.com/2008/01/23/making-an-iphoneipod-touch-webclips-favicon/
A GIF can be animated although browser support for this is currently quite limited. ICO is currently the more widely supported format (including iPhone and iPad). A full list of browser compatibility can be found in this WIkipedia article.
Browsers started supporting it. Also, ICO files are an old image file format for icons in Microsoft Windows. Since ICO is vendor specific, some choose to go with GIF.
Not to mention that there is an abundance of .gif editors, and few ICO editors.
After reviewing supported formats, your best bet is to go with PNG files if you are trying to get away from ICO.
Whether to go for GIF, ICO, PNG, SVG or something else for your favicon depends on a number of factors.
The major reasons to go for ICO are:
Reasons for GIF:
If your icon exists in only one size and support in older versions of Internet Explorer is no concern, you might prefer PNG or GIF because of the smaller file size. However, ICO files, if stored properly, are not significantly larger than PNG files, because since Windows Vista, ICO files can store PNG. So, a corresponding ICO file would be 22 bytes bigger (6 bytes header plus 16 bytes entry).
Side-note: In the HTML that you've specified, there might be a contradiction. If the file /favicon.gif
is indeed a GIF image, then the MIME-type used in the link is wrong. In that case, it should not be image/x-icon
but image/gif
.
The Wikipedia page contains more information on this: https://en.wikipedia.org/wiki/Favicon