Information about favicon.ico
What is favicon.ico?
For example, as seen in the image above, there is a small icon () in the front of the Computer Hope URL.
How can I create a favicon?
The favicon can be created using any free icon generator or in a free online favicon generator such as favicon.cc. The file favicon.ico must be 16x16 in dimension, set to 16 colors, and saved as a .ico file.
Can the icon be animated?
Yes, if the icon generator you're using to create the icon supports animation and the browser you're using to view the web page supports it, this icon can be animated.
Can the file be named something else, other than favicon.ico?
Yes, in your HTML code, add the tag below in the <head></head> section of your code.
<link rel="shortcut icon" href="pictures/favicon2.ico">
This example would cause the browser to look for the favicon2.ico file and use it instead of the favicon.ico. If an older browser or a browser that does not support this feature is being used, the tag will be ignored.
The favicon can also be pulled from another website. For example, to use the Computer Hope favicon on your site, you could add the tag below in your <head></head> section.
<link rel="shortcut icon" href="https://www.computerhope.com/favicon.ico">
All browsers today do not require this tag to be placed in every page you create, as long as there is a favicon.ico file stored in the root (home) directory. We suggest using this tag only when you want a page to use a specific favicon or your web host does not support hosting .ico files.
What is favicon.gif?
More recent Internet browsers are adopting using favicon.gif, in addition to favicon.ico. If you're a website or blog developer, we suggest using a favicon.gif file in addition to favicon.ico. Place the files in your site's root directory and any web-accessible subdirectories, to help prevent 404 errors in your server log.
Why is my browser not showing the favicon?
The favicon may not be showing because of any of the reasons below.
- If you or someone else using your computer has recently cleared your Internet cache, the favicons will be lost in many browsers because they're stored in this temporary cache.
- Page has not been loaded recently or the browser does not look in the proper location for the favicon. Try refreshing the browser page (pressing the F5 key on the keyboard is a common shortcut key for refreshing a page).
- If you are the webmaster of a web page and cannot get the favicon.ico to display in a browser, make sure the icon is in the root directory and has the proper permissions. If this is verified and the page is in a different directory, try placing the favicon.ico file in that directory.
- Finally, earlier browsers have had other various issues related to the favicon.ico file. Make sure you are running the latest available Internet browser version for your operating system.