Check out example codes for "favicon html link". It will help you in understanding the concepts better.

Code Example 1

<link rel="shortcut icon" href="http://example.com/favicon.ico" />

Code Example 2

<link rel="icon" type="image/png" href="/favicon.png"/>

Learn ReactJs, React Native from akashmittal.com