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