A favicon is a small file containing the one or more icons which are used to represent the website or a blog. It is also known as a tab icon, website icon, URL icon, or a bookmark icon.
This icon is actually displayed on the address bar, browser's tab, browser history, bookmark bar, etc. The image of a favicon is in .ico file format. There are various file formats, but .ico format is supported by all the browsers.
How to Create a Favicon
Following are the steps for creating the favicon:
How to insert the Favicon in HTML file
1. Following are the steps for inserting the favicon.ico image in the HTML file:
Open the HTML file. Then use the following syntax to insert the favicon in the HTML file.
2. We have to use the above syntax in thetag of our html file. Then save the file.
3. Now. Open the HTML file in any browser. We can see the icon on the web page.
ExampleTest it Now