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