A fork (aberration) of the awesome favicon-cheat-sheet by @audreyfeldroy.
All modern browser should use the favicon.ico at the root of the domain.
- Add
apple-touch-icon-180x180.pngfiles to the root of the site domain, this should suffice for IOS. - Android may require the following.
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png">
- Add largest to smallest apple-touch-icons to the root domain, and the
HTMLlinks [^3]:
-
apple-touch-icon-192x192.png -
apple-touch-icon-180x180.png -
apple-touch-icon-152x152.png -
apple-touch-icon-120x120.png -
apple-touch-icon-76x76.png -
apple-touch-icon-57x57.png -
apple-touch-icon.png(180px)<link rel="apple-touch-icon" sizes="192x192" href="/apple-touch-icon-192x192.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png"> <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png"> <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png"> <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png"> <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon" href="/apple-touch-icon.png">
-
Favicon Chrome for Android
<link rel="icon" sizes="196x196" href="/path/to/favicon-196.png">
| Sizes | Name | Purpose |
|---|---|---|
| 48x48 | favicon-48.png | Android Devices |
| 96x96 | favicon-96.png | GoogleTV icon |
| 128x128 | favicon-128.png | Chrome Web Store icon |
| 192x192 | favicon-192.png | Android Devices |
| 196x196 | favicon-196.png | Chrome for Android home screen icon |
An ICO file is a container for multiple PNG icons of different sizes. In favicon.ico, create at least these:
Create your .ico out of optimized .png files.
| Sizes | Name |
|---|---|
| 16x16 | Confirm... |
| 32x32 | New tab page in IE, taskbar button in Win 7+, Safari Read Later sidebar |
| 64x64 | Safari Reading List sidebar in HiDPI/Retina |
Pinned tabs in Safari 9+ use an SVG vector mask for the favicon instead of any other PNG/ICO/etc. favicons that may be present. Vector artwork in the SVG file should be black only (no shades of black or other colors) with a transparent background. Also, a fill color needs to be defined in the tag - a hex value or color shorthand will work. Here's the markup for adding the icon:
<link rel="mask-icon" href="icon.svg" color="#ff0000">-
magick convert favicon-16.png favicon-32.png favicon.ico
Send a pull request...