Reputation: 458
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.
Upvotes: 0
Views: 153
Reputation: 2559
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
Upvotes: 1
Reputation: 701
This will work, use this,
<link href="favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
Upvotes: 1
Reputation: 317
Try this code it works for me in IE as well.
<link rel="SHORTCUT ICON" href="favicon.ico" />
Upvotes: 0