Search code examples
htmlasp.netcssfavicon

Favicon issue in browsers


I have a favicon with

<link rel="icon" href="favicon.ico" />

Its in root of project. My problem is when i ran it first time, it gave icon in project correctly but when i ran it again as i was checking for changes in IE compatibility, it could not find icon. It ran before in FF and Chrome, but had some issue in IE. i tried using

<link rel="Shortcut Icon" href="favicon.ico" type="image/x-icon" />

but didnt work.


Solution

  • Try this code it works for me in IE as well.

    <link rel="SHORTCUT ICON" href="favicon.ico" />