Before you post behind someone with information, perhaps you should do your research.
The Favicon is an ICON image (.ico) as defined by IANA. It's mime type is image/vnd.microsoft.icon.
The ICON image is the defacto standard for a Favicon (along with a standardized naming of favicon.ico which is placed in the root of your website's directory). No HTML code is needed to make it work. Simply create your favicon.ico file (Google it if you do not know how) and replace the one in your root HTML folder with the new one. Plain and simple.
W3C introduced HTML linkage for Favicon's. The universal code for that is:
Code:
<link rel="shortcut icon" href="http://www.example.com/myicon.ico">
This code allows for you to specify and ICON image for use as a favicon. I normally do not recommend this as by doing it this way, an HTML page has to load in order for your Favicon icon to show up. Server generated messages such as 404 File Not Found errors or other non-html generated messages would not show it. It's more of a preference thing there.
Finally, W3C added in support for images other than the ICON image format (for example, GIF or JPEG images). However, support of that is not universal. Some browsers support more image formats than others. For example, Mozilla Firefox will support GIFs, JPEGs, PNGs, and even animated GIFs. Google's Chrome will support GIFs, JPEGs, PNGs, but not animated GIFs. Microsoft Internet Explorer only supports the ICON image format. It doesn't support other image types... just to name a few. So, while other image types can be supported (all of them require HTML code to support and, no, the code you listed above will not work for them), the best format to use so that all browsers will work is the ICON image format.
If you want more information, Google is your friend. So is Wikipedia. You can check out
Favicon - Wikipedia, the free encyclopedia for the history, support, and other related information on the Favicon.
Bookmarks