Favicon / head template

A minimal set of icon links covering most modern browsers and platforms without an excessive number of files.

Code

<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="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">

Explanation

apple-touch-icon is used by iOS when adding the site to the home screen. manifest is needed for PWA capabilities and the Android icon.

  • For full legacy IE support, additionally place a favicon.ico at the site root — modern browsers no longer require it explicitly.

Related tools