Branding plays a vital role in web design. Using favicon helps to established a good feel and brand of your website.
What is favicon?
A favicon literally means favorite icon. This icon is saved on your computer when you add websites to your favorites or bookmark. Nowadays, this also serves as the identity of a website in the smallest version.
Where can I get a favicon?
There are various favicon generator out there. I use www.html-kit.com/favicon/. It works perfectly by uploading an image or a graphic.
HTML Code for Favicon
Place the HTML code inside the <head></head> tag.
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" type="image/gif" href="animated_favicon1.gif">
combination of .ico and .gif
<link rel="shortcut icon" href="favicon.ico"> <link rel="icon" type="image/gif" href="animated_favicon1.gif">
Favicon for IOS (iPhone) and android phones
I strongly suggest to use this favicon generator tool to make favicon for all browser and mobile.
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="manifest" href="/manifest.json"> <meta name="theme-color" content="#ffffff">
Favicon not showing up? Try these solutions.
- The URL of the .ico or .gif is wrong
- The favicon have different file name
- They are working on a wrong page
- They do not refresh/clear cache the web page
Note: Favicon don’t work on IE 6. It works when you bookmark the site.