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