Frontend Masters Boost RSS Feed https://frontendmasters.com/blog Helping Your Journey to Senior Developer Thu, 01 Feb 2024 22:41:48 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 225069128 How to Favicon in 2024 https://frontendmasters.com/blog/how-to-favicon-in-2024/ https://frontendmasters.com/blog/how-to-favicon-in-2024/#respond Thu, 01 Feb 2024 22:41:48 +0000 https://frontendmasters.com/blog/?p=709 Andrey Sitnik does a good job each year investigating what websites actually need in terms of doing the best we can for site favicons. The 2024 edition is out, and it looks like this:

<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png"><!-- 180×180 -->
<link rel="manifest" href="/manifest.webmanifest">
// manifest.webmanifest
{
  "icons": [
    { "src": "/icon-192.png", "type": "image/png", "sizes": "192x192" },
    { "src": "/icon-512.png", "type": "image/png", "sizes": "512x512" }
  ]
}

It’s worth knowing what you actually need, as there are quite a few “favicon generator” websites out there that spit out many dozen files and suggest outdated code that just isn’t needed anymore.

]]>
https://frontendmasters.com/blog/how-to-favicon-in-2024/feed/ 0 709