To complete this task you have to
Provide your image which you want to use a icon
it will generate icon for you. Follow the steps given in site.
Write following code in header section of page.
<link rel="shortcut icon" href="Images/favicon.ico" type="image/ico">
<link rel="shortcut icon" type="image/ico" href="Images/favicon.ico">