I have uploaded .ico file for favicon and its working fine as favicon in all browsers. But when i try to show this .ico file in HTML image tag in IE, it is not displayed correctly. Please help.
IE doesn't serve favicons which doesn't have the type="image/x-icon"
on it.
So for favicons for IE, you should use this:
<link rel="icon" type="image/x-icon" href="favicon.ico" />
For showing the icon as a img
tag, the best solution I can think of is trying another format. If you are uploading the icons manually, then I would convert them with an image program.
If you a system which allows users to upload icons, then I would use the GD or ImageMagick library to convert those.