webmaster Posted May 17, 2009 Share Posted May 17, 2009 I've read many different things about favicons. I have read that IE needs to have a tag that states <link rel="shortcut icon"> However, I have read that firefox just needs <link rel="icon"> When viewing source of web pages, I usually only see <link rel="shortcut icon"> and when viewing the source of some sites there is no link tag. Why are there several different ways to do this and what is the difference between the two tag versions? Link to comment Share on other sites More sharing options...
jlhaslip Posted May 17, 2009 Share Posted May 17, 2009 http://en.wikipedia.org/wiki/FaviconThe following shows the corresponding link tags, using examples, for HTML and XHTML.HTML: * <link rel="icon" type="image/vnd.microsoft.icon" href="http://example.com/image.ico"> * <link rel="icon" type="image/gif" href="http://example.com/image.gif"> * <link rel="icon" type="image/png" href="http://example.com/image.png">XHTML: * <link rel="icon" type="image/vnd.microsoft.icon" href="/somepath/image.ico" /> * <link rel="icon" type="image/gif" href="/somepath/image.gif" /> * <link rel="icon" type="image/png" href="/somepath/image.png" /> The image format should be an ".ico" formatted image file and placed in the root folder of the account for IE to handle it properly. Link to comment Share on other sites More sharing options...
webmaster Posted May 17, 2009 Author Share Posted May 17, 2009 http://en.wikipedia.org/wiki/FaviconThe following shows the corresponding link tags, using examples, for HTML and XHTML.HTML: * <link rel="icon" type="image/vnd.microsoft.icon" href="http://example.com/image.ico"> * <link rel="icon" type="image/gif" href="http://example.com/image.gif"> * <link rel="icon" type="image/png" href="http://example.com/image.png">XHTML: * <link rel="icon" type="image/vnd.microsoft.icon" href="/somepath/image.ico" /> * <link rel="icon" type="image/gif" href="/somepath/image.gif" /> * <link rel="icon" type="image/png" href="/somepath/image.png" /> The image format should be an ".ico" formatted image file and placed in the root folder of the account for IE to handle it properly. What I mean is I see many different ways of doing it. Why do certain sites use one type of tag and other sites use other tags, while some sites (doesn't work with mine) don't have a tag for it at all. Link to comment Share on other sites More sharing options...
jlhaslip Posted May 17, 2009 Share Posted May 17, 2009 did you read the Wiki page? The Browsers handle them differently. Link to comment Share on other sites More sharing options...
webmaster Posted May 17, 2009 Author Share Posted May 17, 2009 did you read the Wiki page? The Browsers handle them differently.Yes, I did read it. It says IE requires the "shortcut icon" attribute and Firefox uses the "icon" attribute. I usually only see the "shortcut icon" attribute on sites and not the "icon" attribute. What I am asking is why sites only have one of these tags. Is Firefox compatible with both? The article does not say that. Also, some sites do not even have a tag and the icon shows up anyway. How is this? I cannot make this work on my site without the tag. Link to comment Share on other sites More sharing options...
jlhaslip Posted May 18, 2009 Share Posted May 18, 2009 It is allowed to use both the Firefox and the IE tags. And also place the favicon.ico file in the Root folder. (name it favicon.ico so the Browsers that do not require the tag will find it by default..) Link to comment Share on other sites More sharing options...
webmaster Posted May 18, 2009 Author Share Posted May 18, 2009 Okay, one more question. I have favicon.ico in my root directory on my site, however the browsers (both firefox and IE) do not display it without the tags. Do you know why this is? Link to comment Share on other sites More sharing options...
jlhaslip Posted May 18, 2009 Share Posted May 18, 2009 Remove any bookmarks and clear your cache. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.