I am trying to do a very simple preliminary exercise to setting up a website which is creating a favicon.
This is the code I am using:
There is a very simple method to set a favicon, which had been around for a long time AFAIK.
Place the favicon.ico file in the default location.
i.e
http://www.yoursite.com/favicon.ico
This works in almost every browser without a tag.
However, this works only if it is an *.ico file. PNGs and other formats still have to be linked with a tag