set website icon in html code example
Example 1: how to add favicon in html
<link rel="shortcut icon" type="image/png" href="Link to the image"/>
Example 2: how to change tab icon in html
<link rel="shortcut icon" href="http://sstatic.net/stackoverflow/img/favicon.ico">