To also support touch icons for tablets and smartphones, I prefer the HTML5Boilerplate approach
More information on touch signs can be found in this article .
In the current state of browser support, you donβt even need to add an HTML tag for the icon in your document. Browsers will automatically search for a list of files, see this example for iOS:
If no icons are specified in HTML, iOS Safari will search the root directory of sites for icons with the apple-touch icon or the prefix apple-touch-icon-precomposed. For example, if the corresponding Icon Size for the device is 57 Γ 57 pixels, iOS searches for file names in the following order:
- apple touch icon-57x57-precomposed.png
- apple touch icon-57x57.png
- apple-touch icon-precomposed.png
- apple-touch icon.png
I can advise you not to include a favicon in the document, but there is a list of files ready on the root website:
- apple-touch icon-114x114-precomposed.png
- apple touch icon-144x144-precomposed.png
- apple touch icon-57x57-precomposed.png
- apple-touch icon-72x72-precomposed.png
- apple-touch icon-precomposed.png
- apple-touch-icon.png
(57px*57px) - favicon.ico
HiDPI (32x32px)
When you download a template from html5boilerplate.com , they are all included, you just need to replace them with your icons.
Willem de Wit Mar 21 '13 at 9:28 2013-03-21 09:28
source share