ArticleslgStudy

computer science

Favicon

Favicon is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Favicon rather than just read about it. In short: A favicon (; short for favorite icon), also known as a shortcut icon, website icon, tab icon, URL icon, or bookmark icon, is a file containing one or more small icons associated with a particular website or web page. A web designer can create such an icon and upload it to a website (or web page) by several means, and graphical web browsers will then make use of it.

Favicon — main illustration
Favicon — illustration

Key takeaways

  • Favicon belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Favicon to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Favicon from memory before moving on to harder problems.

Reference excerpt

A favicon (; short for favorite icon), also known as a shortcut icon, website icon, tab icon, URL icon, or bookmark icon, is a file containing one or more small icons associated with a particular website or web page. A web designer can create such an icon and upload it to a website (or web page) by several means, and graphical web browsers will then make use of it. Browsers that provide favicon support typically display a page's favicon in the browser's address bar (sometimes in the history as well) and next to the page's name in a list of bookmarks. Browsers that support a tabbed document interface typically show a page's favicon next to the page's title on the tab, and site-specific browsers use the favicon as a desktop icon.

History In March 1999, Microsoft released Internet Explorer 5, which supported favicons for the first time. Originally, the favicon was a file called favicon.ico placed in the root directory of a website. It was used in Internet Explorer's favorites (bookmarks) and next to the URL in the address bar if the page was bookmarked. A side effect was that the number of visitors who had bookmarked the page could be estimated by the requests of the favicon. This side effect no longer works, as all modern browsers load the favicon file to display in their web address bar, regardless of whether the site is bookmarked.

Standardization In 2003, the .ico format was registered by a third party with the Internet Assigned Numbers Authority (IANA) under the MIME type image/vnd.microsoft.icon. However, when using the .ico format to display as images (that is, not as favicon), Internet Explorer cannot display files served with this standardized MIME type. A workaround for Internet Explorer is to associate .ico with the non-standard image/x-icon MIME type in web servers. RFC 5988 established an IANA link relation registry, and rel="icon" was registered in 2010 based on the HTML5 specification. The popular <link rel="shortcut icon" type="image/png" href="image/favicon.png"> theoretically identifies two relations, shortcut and icon, but shortcut is not registered and is redundant. In 2011 the HTML living standard specified that for historical reasons shortcut is allowed immediately before icon; however, shortcut does not have a meaning in this context.

Legacy Internet Explorer 5–10 supports only the ICO file format. Netscape 7 and Internet Explorer versions 5 and 6 display the favicon only when the page is bookmarked, and not simply when the pages are visited as in later browsers.

SVG favicons All modern browsers support SVG favicons. Since they use vector graphics, a single <link> entry can cover any icon resolution at full sharpness. Additionally, SVG favicons can even adjust their colors according to whether the web browser is set to light or dark mode.

Examples of favicons

Browser implementation The following tables illustrate support of various features with major web browsers. Unless noted, the version numbers indicate the starting version number of a supported feature. Many browsers such as Google Chrome, Microsoft Edge and Opera are based on Chromium (web browser). They use the same engine.

Image file format support The following table illustrates the image file format support for the favicon.

Additionally, such icon files can be 16×16, 32×32, 48×48, or 64×64 pixels in size, and 8-bit, 24-bit, or 32-bit in color depth. The ICO file format article explains the details for icons with more than 256 colors on various Microsoft Windows platforms.

How to use This table illustrates the different ways the favicon can be recognized by the web browser. The standard implementation uses a link element with a rel attribute in the <head> section of the document to specify the file's format, name and location.

The following ways to specify a favicon are supported in Firefox, Chromium and Safari:Internet Explorer does not support SVG favicons. Only Safari supports mask-icon:The Internet Explorer way (favicon.ico located in the website's root /) is still supported by all browsers for now. However if a linked favicon is specified, modern browsers will choose the linked favicon instead of the favicon in the root of the website. Firefox only accepts favicon.ico in the website's root without a <link> tag if the setting browser.chrome.site_icons is set to true in about:config. The default value is true. If set to false, these favicons are ignored.

Animated favicons Various browsers such as Firefox and Opera support animation of favicons. A bug report has been open for Firefox since 2001 requesting a way to disable this feature.

… excerpt ends here. Continue reading the full article.

Illustrations

Favicon: Wikipedia's favicon, shown in Firefox
Wikipedia's favicon, shown in Firefox
Favicon illustration
Favicon illustration
Favicon illustration
Favicon illustration

Worked examples

Example 1 — a first encounter with Favicon

Start with the simplest possible case. Write down what Favicon claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Favicon before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Favicon ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Favicon

In research
Favicon appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Favicon in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Favicon is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1999 neologisms, Computer icons, Favicons, so understanding it makes those chapters shorter.
In everyday life
Look for Favicon outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Favicon” →

How to study Favicon in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Favicon means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Favicon out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Favicon in simple terms?

A favicon (; short for favorite icon), also known as a shortcut icon, website icon, tab icon, URL icon, or bookmark icon, is a file containing one or more small icons associated with a particular website or web page. A web designer can create such an icon and upload it to a website (or web page) by…

Why does Favicon matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Favicon?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Favicon.

Tags

  • 1999 neologisms
  • Computer icons
  • Favicons
  • Internet properties established in 1999
  • Web design
  • Website logos

Keep exploring