icon in html head code example
Example 1: html set icon
<link rel="icon" href="http://example.com/favicon.png">
Example 2: how to add favicon in html
<link rel="shortcut icon" type="image/png" href="Link to the image"/>
<link rel="icon" href="http://example.com/favicon.png">
<link rel="shortcut icon" type="image/png" href="Link to the image"/>