Favicon: .ico or .png / correct tags? [duplicate]

For compatibility with all browsers stick with .ico. .png is getting more and more support though as it is easier to create using multiple programs. for .ico <link rel=”shortcut icon” href=”http://example.com/myicon.ico” /> for .png, you need to specify the type <link rel=”icon” type=”image/png” href=”http://example.com/image.png” />

Does a favicon have to be 32×32 or 16×16?

Update for 2020: Sticking to the original question of 16×16 versus 32×32 icons: the current recommendation should be to provide a 32×32 icon, skipping 16×16 entirely. All current browsers and devices support 32×32 icons. The icon will routinely be upscaled to as much as 192×192 depending on the environment (assuming there are no larger sizes … Read more

How to prevent favicon.ico requests?

I will first say that having a favicon in a Web page is a good thing (normally). However it is not always desired and sometime developers need a way to avoid the extra payload. For example an IFRAME would request a favicon without showing it. Worst yet, in Chrome and Android an IFRAME will generate … Read more

How to add a browser tab icon (favicon) for a website?

There are actually two ways to add a favicon to a website. <link rel=”icon”> Simply add the following code to the <head> element: <link rel=”icon” href=”http://example.com/favicon.png”> PNG favicons are supported by most browsers, except IE <= 10. For backwards compatibility, you can use ICO favicons. Note that you don’t have to precede icon in rel … Read more

Adding a favicon to a static HTML page

You can make a .png image and then use one of the following snippets between the <head> tags of your static HTML documents: <link rel=”icon” type=”image/png” href=”https://stackoverflow.com/favicon.png”/> <link rel=”icon” type=”image/png” href=”https://example.com/favicon.png”/>

Does a favicon have to be 32×32 or 16×16?

Update for 2020: Sticking to the original question of 16×16 versus 32×32 icons: the current recommendation should be to provide a 32×32 icon, skipping 16×16 entirely. All current browsers and devices support 32×32 icons. The icon will routinely be upscaled to as much as 192×192 depending on the environment (assuming there are no larger sizes … Read more

How do I force a favicon refresh?

To refresh your site’s favicon you can force browsers to download a new version using the link tag and a query string on your filename. This is especially helpful in production environments to make sure your users get the update. <link rel=”icon” href=”http://www.yoursite.com/favicon.ico?v=2″ />

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)