2006/10/24

Add favorite icon for your web page

Simply put your favorite icon (16 x 16 or 32 x 32 ico file named favicon.ico) on the server into the same directory as the web page. Depending on browser and configuration, the favicon.ico is not always rendered, even if it is in one of the above locations, unless the web page explicitly declares its presence. To declare that your web page has an icon, you add the following 2 lines into the <head> section of your page:

<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

No comments:

Post a Comment