2 results
tagged
favicon
This “Two Dozen Favicons” Rubbish Is Getting Out Of Control | by Jason Knight | CodeX | Apr, 2022 | Medium
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<link rel="mask-icon" href="maskIcon.svg" color="#90FF00">
<link rel="shortcut icon" href="favicon.ico">
SVG FIRST!
I also suggest you get a good SVG editor that has a proper stripping/minimized save feature. For this I like to use Inkscape:
https://inkscape.org
April 11, 2022 at 11:15:07 AM EDT
*
FILLER
How to Favicon in 2023: Six files that fit most needs — Martian Chronicles, Evil Martians’ team blog
Instead of serving dozens of icons, all you need is just five icons and one JSON file.
In your HTML, for the browser:
<link rel="icon" href="/favicon.ico"><!-- 32×32 -->
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple.png"><!-- 180×180 -->
<link rel="manifest" href="/manifest.webmanifest">
And in your web app manifest:
// manifest.webmanifest
{
"icons": [
{ "src": "/192.png", "type": "image/png", "sizes": "192x192" },
{ "src": "/512.png", "type": "image/png", "sizes": "512x512" }
]
}
January 7, 2021 at 1:51:41 PM EST
*
FILLER