Browsers still request /favicon.ico from the root of your site because one Internet Explorer 5 developer wired it up that way in the late 1990s, and the web never let it go. The fix is not to fight that history. Put a real .ico file at the root, declare your icons with <link rel="icon">, and delete the rel="shortcut icon" you probably copied from an old template.
That old request explains a lot of small mysteries. It's why a brand new site with no icon markup still gets favicon hits. It's why favicon.ico shows up in 404 logs. And it's why so many <head> sections carry a word that does nothing.
A late check-in on the IE5 team
In 2013, Ray Sun wrote up how the favicon happened. He was a junior program manager on the Internet Explorer team while IE5 was being built. A senior developer, Bharat Shyam, showed him a Favorites entry with its own custom icon next to it. How did it work? Shyam said you just put a file named favicon.ico at the root of your IIS server. Sun approved the late check-in, figuring a tiny feature like that couldn't be very risky.
The name makes sense once you know where it lived. It was the icon for your Favorites, which is what IE called bookmarks. "Favorites icon" got shortened to favicon, and the file format was .ico because that's what Windows used for every other icon on the desktop.
Sun's post has a great detail about what happened next. A friend of his at Yahoo noticed a strange spike of requests for favicon.ico in their server logs and asked what on earth it was. IE5 shipped in March 1999, and from then on, millions of browsers started knocking on a door most servers didn't have.
Why the root, and why "shortcut icon"
Putting the file at a fixed path had a real upside. A webmaster could drop one file on a server and every page got an icon, with zero HTML changes. The downside showed up later. The W3C published a how-to in 2005 that recommended rel="icon" and called the root file approach "discouraged," because it is inconsistent with some principles of web architecture. Its plainest objection was practical. If you hosted your site in a folder on someone else's domain, you couldn't write to the root at all.
For pages that wanted a different icon, IE supported a <link> tag. The catch was the rel value. IE wanted rel="shortcut icon", and it matched that whole string exactly. A Microsoft engineer confirmed this on the IE team blog in 2007. IE treated the value as one string and looked for "shortcut icon" specifically. That's a problem because rel is meant to be a list of separate tokens split on spaces. To every other browser, shortcut icon is two values, and only one of them means anything.
Other browsers handled it the sensible way. Mozilla's 0.9.6 release notes already described page icons defined with <link rel="icon">. Since those browsers read rel as tokens, they ignored shortcut and used icon, so the IE version happened to work everywhere. Internet Explorer itself didn't accept a plain rel="icon" until IE9, and even then only with a type attribute.
That's how shortcut icon ended up in templates for twenty years. It was the only spelling that worked in every browser people used at the time. Old compatibility hacks tend to outlive the browsers that needed them, the same way every browser still claims to be Mozilla.
What the spec says now
The current HTML standard keeps both halves of this history. If your page has no <link> with the icon keyword and it was loaded over HTTP or HTTPS, browsers may fetch /favicon.ico from your origin and use it as if you had declared it. The 1999 behavior is written into the spec as a fallback.
The shortcut keyword got a different fate. MDN now says it is non-conforming and ignored, and that authors must not use it anymore. Browsers only see icon in that string.
You can see the token rule in action with a selector. The ~= attribute selector matches one word in a space-separated list, which is exactly how browsers read rel.
// Finds rel="icon" and the legacy rel="shortcut icon" alike,
// because ~= matches a single space-separated token.
const icons = document.querySelectorAll('link[rel~="icon"]');
for (const link of icons) {
console.log(link.rel, link.href, link.sizes.value || "(no sizes)");
}
Paste that into the console on any site and you'll see every icon it declares. If one of them says shortcut icon, that site's template is older than it looks.
The icon setup worth shipping
The spec says that when several icons are declared, the browser picks the most appropriate one from type, media, and sizes, and uses the last one if they tie. You can lean on that. The setup I'd start any site with is short.
<!-- Before: copied from a template, circa 2008 -->
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<!-- After -->
<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">
Each line has a job. The .ico covers anything old and anything that goes looking for the root file on its own, so keep it at /favicon.ico even though you also link it. The SVG gives you one crisp file at every size, and it can carry a prefers-color-scheme media query inside it so the icon adapts to dark mode. The Apple line exists because iOS ignores rel="icon" for home screen icons and uses its own non-standard apple-touch-icon, so make that PNG 180 by 180.
The sizes="32x32" on the .ico line is there on purpose. Evil Martians, whose favicon guide is the one most people end up copying, tracked Chrome bugs where the browser grabbed the ICO instead of the SVG, or downloaded both. Their current recommendation is sizes="32x32" on the ICO link to steer Chrome to the SVG.
Where SVG costs you
SVG favicons were a Chrome and Firefox thing for years. Chromium added them in version 80. Safari held out until Safari 26.0 in September 2025, when WebKit announced SVG support for icons everywhere in the interface, favicons included. That means plenty of people on older Apple devices still can't see your SVG, and that's the main reason the .ico line stays. Skip the SVG entirely if your icon is detailed artwork that turns to mush at 16 pixels. A hand-tuned small bitmap will beat a scaled vector there.
When to skip all of this
A favicon is a nice-to-have. An internal tool or a quick prototype can live without one. If the 404s bother you, an empty .ico file at the root costs nothing. Don't go further and add a pile of sizes and a web manifest unless you're actually building something people install. The manifest matters for installed apps, not for a blog.
Wrapping up
Every time a browser asks your server for /favicon.ico, it's honoring a check-in on the IE5 team that somebody figured was low risk. The request isn't going away, so answer it with a real file. Then declare your icons with rel="icon", add the Apple touch icon, and let shortcut retire. It was only ever there because one browser read the attribute as a single string.
Sources
- Inventing Favicon.ico, Ray Sun
- Fun with Favicons, Eric Lawrence, IEInternals
- Why doesn't the favicon for my site appear in IE7?, Microsoft IE team blog archive
- How to Add a Favicon to your Site, W3C
- Mozilla 0.9.6 Release Notes
- Link type "icon", HTML Living Standard
- HTML attribute: rel, MDN
- SVG favicons, Can I use
- WebKit Features in Safari 26.0, WebKit
- Building an adaptive favicon, web.dev
- How to Favicon in 2021: Six files that fit most needs, Evil Martians
Want the next post as soon as it's up?
On iPhone and iPad, notifications work once the blog is on your Home Screen.
- Tap the Share button in Safari.
- Choose Add to Home Screen, then Add.
- Open Off by One from your Home Screen and tap Get notified of new posts.