As long as you don't mind all the 404 errors.

Best practice:

* Use the icon format with as many versions as you like (16x16, 32x32, 16
colour, 256 colour etc.) within that file.
* Use favicon.ico as the filename and put in in the site root. This will
account for a majority by default.
* On every page in the site, use <link rel="shortcut icon"
href="http://domain.name/favicon.ico"; />. This accounts for old IE browsers
that may look in the current dir for the icon if the link isn't present. (Of
course leave out the trailing / for HTML versions). I don't mean
"/favicon.ico" I mean "http://domain.name/favicon.ico"; meaning the full uri
of the file. Trust me, it works.

That covers as many options as is possible. Having done this we reduce 404
errors on this file to zero so I must be pretty well right.

Why did I have webboy.ico in my example? Because we run three sites from the
same codebase. We have three specific favicons and a plain default
favicon.ico for browsers that don't read the link tag.

No it's not the only answer but it works and the thread has gone on long
enough now.

P


> What a shock! ;)
>
> <link rel="shortcut icon" href="http://www.cinema4duser.com/favicon.ico";
/>
>
> works fine and also vaidates it seems. And you only have to put it in the
> index.html page.
>
> Thanks
> P


*****************************************************
The discussion list for http://webstandardsgroup.org/
***************************************************** 

Reply via email to