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

Code Example 1

<link rel="icon" href="">

Code Example 2

<link rel="shortcut icon" type="image/png" href="Link to the image"/>

Code Example 3

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

Code Example 4

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

Code Example 5

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

Code Example 6

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

Learn ReactJs, React Native from