How to add a favicon to your blog / website

By on February 19th, 2008 in Graphic Design, Resources, Tutorials
Quick links : comment, grab rss or contribute

A favicon, also known as shortcut icon, website icon, page icon or urlicon is a small, square icon, usually 16x16px in size, that is displayed alongside the URL in the web address bar of a web browser.

Favicon Examples

The reason for using a favicon is branding. Most modern web browsers allow tabbed browsing. This means that a user can open several websites in the same browser window. A nice favicon design will distinguish your blog / website from the other websites.

Some modern browsers also allow favicons to be displayed in the Bookmarks section. Again, this will ensure your website will be distinguished from the others.

Favicon formats

The most widely used favicon format is .ico. Other favicon formats used are .gif and .png. You can also add an animated gif as a favicon, but this is currently only supported by Mozilla Firefox. Even though this is only supported by Firefox, there is the possibility of using multiple favicons. For example you can use an animated one which will display in Firefox and a static one which will display in the rest of the browsers.

Favicon Design

A favicon has a 16x16px size so to design it it’s advisable to use a larger size such as 128x128px and then scale it to 16x16px. For more information regarding the design process view our favicon design tutorial.

Implementation

Most browsers search by default for favicon.ico in the root folder of the website / blog the access. So it’s enough to place your favicon.ico in the root folder without adding additional code and the favicon will be displayed. However the code below should be used, especially if the favicon is not located in the root folder.

The code

Favicon Code

Guidelines

  • The link elements must be inside the head element in the HTML.
  • Use the appropriate resolution and color depth : ICO – include multiple resolutions (the most commonly used being 16×16 and 32×32, with 64×64 and 128×128 sometimes used by Mac OS X) and bit-depths ; GIF – use 16×16 in 256 colors ; PNG – use 16×16 in either 256 colors or 24-bit.
  • For XHTML, the link element must be terminated by ” />” instead of “>”.
  • The .ico file format will be read correctly by all browsers that can display favicons.

Favicon Inspiration

You may also like (related articles)

  • http://www.teamcreatives.com/ Jake

    Well, that’s a nice tip! Your icons looks great… :) I always love to have my blog or site icons. It is also considered as a logo or identity for your site… :)

  • http://perishablepress.com/ Jeff Starr

    Yes!! It is great to see more articles on favicons, especially when they are well-written and informative like this one! Here is my slightly geekier take on the wonderful world of favicons, especially focused on branding and technical aspects. Hopefully, it will provide further benefit and help for your readers regarding favicons! ;)

  • http://www.idezmax.com Web Design

    Wow. it’s good. thanks for that.

  • http://www.bokrin.com/ computer jobs

    I have noticed that favicon works as ico only under IE because when i use gif it don’t work on my ie :|

  • http://www.animatedfavicon.com animated favicon

    How can I make the favicon roll from up to down?

  • http://www.crazyleafdesign.com Alex

    It’s not all that difficult. You just create an animated gif with the icon and instead of the standard ico file you make the favicon a gif. This blog uses a gif favicon. You can check out the code you need to inserd in the head tags by checkng the source code.

  • http://www.worldguitarists.com Sam

    Hey good advice. I use SM Favicon Generator. This one works great and its fast.

  • http://www.animatedfavicon.com favicon generator

    I use free tool at animatedfavicon.com. This one works great and its fast

  • http://www.mutuelle-sante-fsp.com Mutuelle

    This is a very useful article, especially for people like me who are new to blogging

  • Pingback: 10 Details Not To Neglect On Your Blog


Elegant Wordpress Themes Design Freebies
Popular articles
We’re on Google
We’re on Twitter
We’re on Facebook
Sponsor
Now Hot on our Websites

Sponsors