How do I create an Icon for my Web page?

Posted by webstuffscan on December 25th, 2006


When you visit Web sites in Firefox, you would have noticed that for many sites an Icon is shown on the left side of the URL field (Address field). For example, for Gmail it is a “letter” icon while for Google it is a “big G” icon.

Favicons on Firefox

In web speak, this icon is know as the favicon since it appears on the favorites list (in both Internet Explorer and Firefox). Now how do you add such a feature to your own Web page? It is rather simple.

1. First create an icon (name it as favicon.ico) which represents your site. This can be any picture file with dimensions 16 by 16 pixels. You might want to make the background using transparent color, otherwise a white rectangle will appear behind your Icon.

2. Upload your Icon to the document root of your web host. Typically this where your index.html is!

3. Add reference to your icon in all the web pages (inside HEAD tag). For wordpress, the following line can be added to the header.php inside head tags. I think this is not necessary in most browsers.


<link rel="icon" href="http://yoursiteaddress/favicon.ico"></link>

Thats it!

Related Stuff
Copyright is retained by webstuffscan

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word