{"id":709,"date":"2024-02-01T16:41:48","date_gmt":"2024-02-01T22:41:48","guid":{"rendered":"https:\/\/frontendmasters.com\/blog\/?p=709"},"modified":"2024-02-01T16:41:48","modified_gmt":"2024-02-01T22:41:48","slug":"how-to-favicon-in-2024","status":"publish","type":"post","link":"https:\/\/frontendmasters.com\/blog\/how-to-favicon-in-2024\/","title":{"rendered":"How to Favicon in 2024"},"content":{"rendered":"\n<p>Andrey Sitnik does a good job each year investigating what websites actually need in terms of doing the best we can for site favicons. <a href=\"https:\/\/evilmartians.com\/chronicles\/how-to-favicon-in-2021-six-files-that-fit-most-needs\">The 2024 edition is out<\/a>, and it looks like this:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">link<\/span> <span class=\"hljs-attr\">rel<\/span>=<span class=\"hljs-string\">\"icon\"<\/span> <span class=\"hljs-attr\">href<\/span>=<span class=\"hljs-string\">\"\/favicon.ico\"<\/span> <span class=\"hljs-attr\">sizes<\/span>=<span class=\"hljs-string\">\"32x32\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">link<\/span> <span class=\"hljs-attr\">rel<\/span>=<span class=\"hljs-string\">\"icon\"<\/span> <span class=\"hljs-attr\">href<\/span>=<span class=\"hljs-string\">\"\/icon.svg\"<\/span> <span class=\"hljs-attr\">type<\/span>=<span class=\"hljs-string\">\"image\/svg+xml\"<\/span>&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">link<\/span> <span class=\"hljs-attr\">rel<\/span>=<span class=\"hljs-string\">\"apple-touch-icon\"<\/span> <span class=\"hljs-attr\">href<\/span>=<span class=\"hljs-string\">\"\/apple-touch-icon.png\"<\/span>&gt;<\/span><span class=\"hljs-comment\">&lt;!-- 180\u00d7180 --&gt;<\/span>\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">link<\/span> <span class=\"hljs-attr\">rel<\/span>=<span class=\"hljs-string\">\"manifest\"<\/span> <span class=\"hljs-attr\">href<\/span>=<span class=\"hljs-string\">\"\/manifest.webmanifest\"<\/span>&gt;<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"JSON \/ JSON with Comments\" data-shcb-language-slug=\"json\"><span><code class=\"hljs language-json\"><span class=\"hljs-comment\">\/\/ manifest.webmanifest<\/span>\n{\n  <span class=\"hljs-attr\">\"icons\"<\/span>: &#91;\n    { <span class=\"hljs-attr\">\"src\"<\/span>: <span class=\"hljs-string\">\"\/icon-192.png\"<\/span>, <span class=\"hljs-attr\">\"type\"<\/span>: <span class=\"hljs-string\">\"image\/png\"<\/span>, <span class=\"hljs-attr\">\"sizes\"<\/span>: <span class=\"hljs-string\">\"192x192\"<\/span> },\n    { <span class=\"hljs-attr\">\"src\"<\/span>: <span class=\"hljs-string\">\"\/icon-512.png\"<\/span>, <span class=\"hljs-attr\">\"type\"<\/span>: <span class=\"hljs-string\">\"image\/png\"<\/span>, <span class=\"hljs-attr\">\"sizes\"<\/span>: <span class=\"hljs-string\">\"512x512\"<\/span> }\n  ]\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JSON \/ JSON with Comments<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">json<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p>It&#8217;s worth knowing what you <em>actually<\/em> need, as there are quite a few &#8220;favicon generator&#8221; websites out there that spit out many dozen files and suggest outdated code that just isn&#8217;t needed anymore.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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: It&#8217;s worth knowing what you actually need, as there are quite a few &#8220;favicon generator&#8221; websites out there that spit out [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":711,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[94,31],"class_list":["post-709","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-beat","tag-favicon","tag-html"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/frontendmasters.com\/blog\/wp-content\/uploads\/2024\/02\/favicon-thumb.jpg?fit=1000%2C500&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/comments?post=709"}],"version-history":[{"count":1,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/709\/revisions"}],"predecessor-version":[{"id":710,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/709\/revisions\/710"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media\/711"}],"wp:attachment":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media?parent=709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/categories?post=709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/tags?post=709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}