Icons & Colors
A favicon covers the browser tab. Add touch icons, a manifest, or vendor fields only for the platforms your site supports.
Get started
<link rel="icon" href="/icon.svg" sizes="any" type="image/svg+xml">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="apple-touch-startup-image" href="/launch-portrait.png" media="(orientation: portrait)">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5b21b6">
<meta name="theme-color" content="#0d6efd">
<meta name="color-scheme" content="light dark">
<meta name="msapplication-TileColor" content="#0078D7">
<meta name="msapplication-TileImage" content="/path/to/square-image-144x144.png">Recommendations
- 01A favicon may be enoughBrowsers still request /favicon.ico by convention. Use link rel="icon" when you want another path or format.
- 02Use SVG where the platform accepts itSVG scales cleanly for modern browser favicons. Apple touch icons still need a raster image.
- 03Keep a raster fallbackPNG remains useful for fixed-size icons and platforms that do not accept SVG.
- 04Test icons against real surfacesCheck light and dark browser chrome, pinned tiles, and home screens. A transparent mark can disappear on an unexpected background.
Explanation
icon
relProvides an icon that browsers can use for the page in tabs, bookmarks, history, and other interface surfaces.
<link rel="icon" href="/icon.svg" sizes="any" type="image/svg+xml">Provides an icon that Apple devices can use when someone saves the site to their Home Screen or installs it as a web app.
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">An Apple extension that supplies a launch image for a web app opened from the Home Screen.
<link rel="apple-touch-startup-image" href="/launch-portrait.png" media="(orientation: portrait)">mask-icon
relA Safari-specific relation for the monochrome SVG used by pinned tabs. It is registered by IANA but is not a built-in HTML Living Standard link type.
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5b21b6">theme-color
nameSuggests a color that browsers may use around the page, such as a title bar, tab highlight, or task switcher card.
<meta name="theme-color" content="#0d6efd">color-scheme
nameTells the browser which color schemes the page can render. The browser can use this early, before the stylesheet loads, to choose a suitable canvas and native controls.
<meta name="color-scheme" content="light dark">Legacy Internet Explorer metadata for the background color of a website tile pinned to the Windows 8 Start screen. Modern Chromium-based Edge does not use it.
<meta name="msapplication-TileColor" content="#0078D7">Legacy Internet Explorer metadata for the image on a website tile pinned to the Windows 8 Start screen. Modern Chromium-based Edge does not use it.
<meta name="msapplication-TileImage" content="/path/to/square-image-144x144.png">More collections
Start with the closest collection, then trim it to match your page.