PDA

View Full Version : Why is my icon for browser tab not showing up?


RedFinch
02-20-2015, 04:54 PM
Not sure if this is the right forum for this question but here goes.

Hi, I want to make a favicon for my web page. I found a sample but it's not working for me. Can someone please help me get it to work. On the index page of the web site I put this in the <head> of the page.

<!--
<![if !IE>
<link rel="icon" href="http://mywebsiteurl/images/favicon.ico" type="image/x-icon" />
<![endif]>
<link rel="shortcut icon" href="http://mywebsiteurl/images/favicon.ico" type="image/ico" />
-->

Can I put this on specific pages that I want to display the favicon or does it have to be somewhere at the root of the site?

If you can think of any solution I would really appreciate it. Thanks:D

jmichae3
03-10-2015, 03:50 AM
http://www.iana.org/assignments/media-types/media-types.xhtml#image

those are the allowed image IANA MIME types.
mine work, but I do not specify a MIME type. the MIME type should probably be image/vnd.microsoft.icon since it is a standard microsoft icon (.ico) file format.

for one thing, in the case of IE if it makes any difference at all, you end up with 2 icon files in the case of the condition of IE being true (no else).
you should also know that IE conditional comments are no longer supported, as of IE10.
https://msdn.microsoft.com/en-us/library/ie/hh801214%28v=vs.85%29.aspx