There's always so much misinformation spread every time the topic of favicon has come up, and it comes up pretty often.
Kraam, it is an ICO file, not a PNG.
Guangdian, I never have any idea what you're trying to express.
The two dudes with code are both correct, but their solutions may not work for all browsers. Here's a cross-browser solution I learned a long time ago:
CODE
<link rel="icon" href="http://domain.com/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="http://domain.com/favicon.ico" type="image/x-icon">
Make sure you name your file "favicon.ico". It definitely works for Internet Explorer and Gecko-based browsers [Mozilla, Mozilla Firefox, Netscape, Konqueror, generic Linux browsers, etc]. Be warned that IE is always finicky about these icons, though.
Reply