link for favicon in html code example
Example 1: favicon HTML
<link rel="icon" href="yourIcon.png" type="image/png">
Example 2: favicon html link
<link rel="shortcut icon" href="http://example.com/favicon.ico" />
Example 3: favicon in html document
<link rel="shortcut icon" type="image/png" href="http://example.com/favicon.png"/>