The Artima Developer Community
Sponsored Link

Web Buzz Forum
How to Add a Favicon to your Site

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Douglas Clifton

Posts: 861
Nickname: dwclifton
Registered: May, 2005

Douglas Clifton is a freelance Web programmer and writer
How to Add a Favicon to your Site Posted: Mar 23, 2006 9:45 PM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Douglas Clifton.
Original Post: How to Add a Favicon to your Site
Feed Title: blogZero
Feed URL: http://loadaveragezero.com/app/s9y/index.php?/feeds/index.rss1
Feed Description: Web Development News, Culture and Opinion
Latest Web Buzz Posts
Latest Web Buzz Posts by Douglas Clifton
Latest Posts From blogZero

Advertisement

w3c An interesting message landed in my inbox today. Karl Dubost, who (among other roles) is the Activity Lead for the W3C Quality Assurance Interest Group, posted a link to a draft document: How to Add a Favicon to your Site.

The document is open for reviews, suggestions and proposals. The future of this document will depend on your comments and if the QA IG as large thinks it would be interesting to give it more visibility.

The document proposes two methods of specifying such icons and suggests the first as a standard.

  1. Use a <link> element in the <head> section of your document with a rel attribute of "icon" and define the relationship through the use of an HTML profile. I happen to agree with this approach and use it myself. See also XMDP and my own profile.

  2. Place the image in a predefined location, usually a file called favicon.ico in the root folder of your Web site. This method is discouraged, which I also happen to agree with. However, certain browsers expect this and if you check your log files you will see countless requests for this resource. I also use this method.

A third method is very similar to the first, except the rel attribute is "shortcut icon." Patrick Lauke posted a reply in which he states that "many people wrongly use" this method. Hopefully I can get him to elaborate on this point. Again, I use this method so as many user agents as possible can find the icon.

So, why all the fuss about favicons? Funny you should ask Last week, Chris Pirillo and I spent the better part of a day exchanging emails discussing techniques for fetching the favicon from any particular URI. The solution, as it turns out, is to use the above methods until you either find the image, or are forced to abandon the attempt because no icon exists or the request times out. Here is a sample page I slapped together using PHP and some code courtesy of Paul James. If you're wondering why Chris was interested in such a technique, try a search on Gada.be or visit his blog post on the subject.

If this call for review interests you, follow this thread. If you are interested in participating, you can join the QAIG mailing list.

Related posts: Favicon Tools

Read: How to Add a Favicon to your Site

Topic: Line smoothing in Python Previous Topic   Next Topic Topic: Jif Lemon Day

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use