css/img/favicon.png code example
Example 1: how to add favicon in html
<link rel="shortcut icon" type="image/png" href="Link to the image"/>
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"/>