A favicon is a small image, it will shown along side of title of page.
<title>My Page Title</title>
<link rel="img" type="image/x-icon" href="/images/favicon-img.ico">
As you see, a <link> element to your “index.html” file, after the <title> element inside <head>.
The “href” refer the path of image stored and “type” to define the type of img
Note: Above mentioned path. in href is dummy path. you should be updating with your directory icon under image folder