Forum Moderators: open
<link rel="icon" type="image/png" href="http://www.example.com/youricon.png">
A second method for specifying a favicon relies on using a predefined URI to identify the image: "/favicon", which is relative to the server root. This method works because some browsers have been programmed to look for favicons using that URI. This approach is inconsistent with some principles of Web architecture and is being discussed by {yak, yak}. To summarize the issue: {yak, yak, yak}
There are a few other well-known encroachments on URI space, including the "robots.txt" file and the location of a P3P privacy policy. The Technical Architecture Group is exploring alternatives that do not impinge on URI space without license.
Just today doing this cut about 0.7kb off of my favicon.
But saying that it is still not visible.Assuming the browser address field that depends on browser/version. If coding html5, the draft [w3.org] has a good explanation. Note best to include www when specifying an absolute url.
If that means that the w3c folks thought they could persuade the entire world to Do Something Different with robots.txt file, we have to conclude that they have given up.Not quite - the section quoted was referring to browsers being engineered to automatically look for a favicon in the server root, which creates issues on a shared server and the favicon is in a user root. robots.txt was mentioned in relation to other issues.
LINK tag entirely and leave it up to the browser to find favicon.ico in my document root. [edited by: tedster at 6:45 pm (utc) on Apr 30, 2011]
Just today doing this cut about 0.7kb off of my favicon.
do it the right way
Better yet, look for one of the many "free favicon" tools, and make yourself a multi-resolution .ico-format file, so that your attractive website-brand icon can be dragged and dropped to the desktop or into a folder as a shortcut. True .ico files contain three embedded images, one each at 16x16, 32x32, and 48x48 pixels in size.
If your site supports mobile devices, be aware that Apple's iPhone will ask for "apple-touch-icon.png" or "apple-touch-icon-precomposed.png" in the same way that non-mobile browsers ask for favicon.ico, so you may also want to make a 57x57-pixel image for it as well.
I'm lazy; I make my original image at 57x57 with a 4-pixel border all around, save it as a .png for the Apple devices, then crop it to 48x48 (thus removing the border and one row of pixels from the bottom and left side), and then scale that 48x48 image down both to 32x32 and to 16x16.
I tried everything i could think of including that before going to the ISP but to no avail but it has been set up now even though i do not know how they did it because they didn't change any of my coding.