add favicon to site html 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 for html page

<link rel="icon" type="image/png" href="/favicon.png"/>
<link rel="icon" type="image/png" href="https://example.com/favicon.png"/>

Example 3: adding a favicon in html

<link rel="icon" type="image/png" href="/favicon.png"/>
<link rel="icon" type="image/png" href="https://example.com/favicon.png"/>

Tags:

Html Example