Welcome to WebmasterWorld Guest from 54.158.25.146

Forum Moderators: incrediBILL

Message Too Old, No Replies

Favicon question

     
2:31 am on Jun 28, 2011 (gmt 0)

Full Member

5+ Year Member

joined:Sept 8, 2010
posts:210
votes: 0


Hello, i have noticed for a long time that some sites use to specify the favicon in two places, like this:


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


Dos anyone know why?
Is there some browser issue, that needs both ?
I have only set the shortcut icon line, on my site.
7:12 am on June 28, 2011 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member pageoneresults is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 27, 2001
posts: 12172
votes: 61


I did some research on this back in 2007, not sure if it still applies.

Stop all those favicon 404s!
[WebmasterWorld.com...]

At that time, using the rel="shortcut icon" in addition to rel="icon" was to address compatibility issues with IE which used the rel="shortcut icon". I've done some quick scanning and it appears that this was an issue up to IE6. IE7+ appear to support the rel="icon" which is the official link type.

4.12.3.6 Link type "icon"
[W3.org...]

I still use both but I haven't researched the latest on compatibility issues such as those back in 2007. Anyone else got any updated information on use of both rel="shortcut icon" vs rel="icon"?
7:41 am on June 28, 2011 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:7658
votes: 519


Just for fun, about six months ago, on a site where it was fun and no biz (info thingie) never inserted any link to favicon... just put one in the root. Guess what? Loaded anyway. Kind of makes you wonder... (and I'm not talking about dev browsers... users, friends and family can see it, too).

That said, best to do it right and insert the link...

PS: Put the favicon in there to prevent 404s since the bots/browsers were looking for it... didn't care if it showed or not...
8:50 am on June 28, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2006
posts: 3123
votes: 0


Guess what? Loaded anyway. Kind of makes you wonder...


I think browsers will, by default, look for "favicon.ico" in the web root. But modern browsers do support other kind of image formats these days... gifs, pngs, etc. And for these you will have to specify the LINK.
10:03 am on June 28, 2011 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member piatkow is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 5, 2006
posts:3396
votes: 40


I haven't checked on this for a long time but IIRC IE6 and earlier needed an explicit reference. No idea about later releases. Every version of Firefox that I have used found the favicon without any help.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members