Question

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.

Was it helpful?

Solution 3

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

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

OTHER TIPS

This will work, use this,

<link href="favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />

Your can create favicon image using this link You can place your image in your website.

Then you can put this

<link rel="Shortcut Icon" href="http://www.baseurl.com/favicon.ico" type="image/x-icon" />

http://www.baseurl.com/ (or) http://www.yourwebsite.com/ 

This baseurl should be given in your LINK tag

That's all

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top