tags:

views:

65

answers:

4

title asks everything.

+3  A: 

You can put these inside <head> tag:

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

Make sure that you specify the correct path, usually the root folder.

More Info about Favicons

Sarfraz
favicon.ico is hardcored or it be imgname.ico??
pamela
It should be like `favicon.ico`
Sarfraz
+2  A: 

The feature is called Favicon.

Grzegorz Oledzki
chal be chutiye
pamela
A: 

use a fave icon

<head>
   <link rel="shortcut icon" href="http://www.your-page-name.com/favicon.ico"&gt; 
</head>
Preet Sangha
+3  A: 

you just need the favicon.ico in your webroot. the browsers will pick it up automatically.

Using the suggested

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

allows to use differently named icons or different icons for certain pages.

Patrick Cornelissen
favicon.ico is hardcored or it be imgname.ico??
pamela
with the html header fields you can select every icon filename you like. favicon.ico in the webroot is just the default.
Patrick Cornelissen