|Create Your Favicon|
A favicon is nothing more than a 16 pixels by 16 pixels icon, and the file has a .ico extension.
Favicons are very simple image icons, meaning that even Microsoft Paint should be enough to create a good looking one. The easiest way is to create a 32 x 32 pixels JPEG image with Paint and then use the online service “Favicon from Pics“Â to convert the JPEG image into a favicon.ico file.
Once you are done with the favicon.ico file you should upload it to your site. Just make sure you place it in the root directory, which is the directory where the index file is located.
Now Finally you have to do is
</head>tags. All you need to do is to add the following line:
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
This code will only work if the favicon.ico is located in the root directory.