rel="shortcut icon" considered bad

In case you have on your web site something like.

<link rel="shortcut icon" href="/favicon.ico">

You may reconsider, and set it like this

<link rel="icon" href="/favicon.ico" type="image/x-icon">

Explanation: IE9 do not require “shortcut” keyword, and this would be the only reason why to set the “shortcut” inside the rel attribute.

If you simple specify type=”image/x-icon” IE9 will understand. favicon.ico is the best name, since all browsers expect it, and don’t forget to set the “/” before it.

Make sure to always put the favicon.ico in the root directory of your site. It is the implied default, and even .png and .gif favicons are possible I would use it first.

In fact you should consider, some favicon generator, that will provide you the following list.


<link rel='icon' type='image/x-icon' href='/favicon.ico'>

<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">

<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">

<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">

<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">

<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">

<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">

<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">

<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">

<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">

<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png">

<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">

<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">

<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">

<link rel="manifest" href="/manifest.json">

<meta name="msapplication-TileColor" content="#ffffff">

<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">

<meta name="theme-color" content="#ffffff">

tags: & category: -