World Library  
Flag as Inappropriate
Email this Article


Article Id: WHEBN0000398310
Reproduction Date:

Title: Favicon  
Author: World Heritage Encyclopedia
Language: English
Subject: Internet Explorer, Internet Explorer 5, Site-specific browser, Galeon, Web browsers
Collection: Computer Icons, Favicons, Web Browsers, World Wide Web
Publisher: World Heritage Encyclopedia


A favicon (short for Favorite icon), also known as a shortcut icon, Web site icon, tab icon or bookmark icon, is a file containing one or more small icons,[1] most commonly 16×16 pixels, associated with a particular website or web page.[1][2] 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.[3] 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.[3] 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.[1]

WorldHeritage's favicon, shown in an older version of Firefox (from 2008)


  • History 1
    • Standardization 1.1
    • Legacy 1.2
  • Browser implementation 2
    • File format support 2.1
    • Use of favicon 2.2
    • How to use 2.3
    • Device support 2.4
      • HTML5 recommendation for icons in multiple sizes 2.4.1
    • Animated favicons 2.5
  • Limitations and criticism 3
  • References 4
  • External links 5


In March 1999, Internet Explorer's favorites (bookmarks) and next to the URL in the address bar if the page was bookmarked.[5][6][7][4] A side effect was that the number of visitors who have 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.[6]


The favicon was standardized by the World Wide Web Consortium (W3C) in the HTML 4.01 recommendation, released in December 1999, and later in the XHTML 1.0 recommendation, released in January 2000.[8][9] The standard implementation uses a link element with a rel attribute in the section of the document to specify the file format and file name and location. Unlike in the prior scheme, the file can be in any Web site directory and have any image file format.[10][11]

In 2003, the .ico format was registered with the Internet Assigned Numbers Authority (IANA) under the MIME type image/[12] Ironically, when using the .ico format to display as images (e.g. 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.[13]

RFC 5988 established an IANA link relation registry,[14] and rel="icon" was registered in 2010 based on the HTML5 specification. The popular theoretically identifies two relations, "shortcut" and "icon", but "shortcut" is not registered and is redundant. In 2011 the HTML living standard[15] specified that for historical reasons "shortcut" is allowed immediately before "icon";[16] however, "shortcut" does not have a meaning in this context.


Internet Explorer 5-10 supports only the ICO file format. Netscape 7 and Internet Explorer versions 5 and 6 browsers display the favicon only when the page is bookmarked, and not simply when the page is visited as in later browsers.[4]

Browser implementation

The following table illustrates major web browsers supporting different features. The version numbers indicate the starting version of a supported feature.

File format support

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

Firefox 1.0[17] 1.0[17] 1.0[17] Yes[18] Yes 3.0[18] 41.0[19]
Google Chrome Yes Yes 4.0 4.0 4.0 No No[20]
Internet Explorer 5.0[21] 11.0[22] 11.0[22] No[21] No[21] No[21] No[23]
Opera 7.0[24] 7.0[24] 7.0[24] 7.0[24] 7.0[24] 9.5 Dropped
Safari Yes 4.0 4.0 No 4.0 No No

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.[1][3] The ICO file format article explains the details for icons with more than 256 colors on various Microsoft Windows platforms.

Use of favicon

This table illustrates the different areas of the browser where favicons can be displayed.

Browser Address bar Address bar drop down list Links bar Bookmarks Tabs Drag to desktop
Firefox 1.0–12.0: Yes[25]
> v13: No[26]
Yes Yes Yes[25] Yes[25] Yes[25]
Google Chrome No[25] No Yes[25] Yes[25] 1.0[25] 1.0[27]
Internet Explorer 7.0[25] No 5.0[25] 5.0[25] 7.0[25] 5.0[25]
Opera 7.0–12.17: Yes
> v14: No[25]
No 7.0[25] 7.0[25] 7.0[25] 7.0[25]
Safari Yes[25] No No[25] Yes[25] No[25] No[25]
WorldHeritage's favicon, shown in Opera

Opera Software added the ability to change the favicon in the Speed Dial in Opera 10.[28]

How to use

This table illustrates the different ways the favicon can be recognized by the web browser.

Google Chrome Internet Explorer Firefox Opera Safari

Yes[4] Yes[4][21] Yes[4] Yes[4] Yes

Yes Yes (from IE 9)[22] Yes Yes Yes

Yes[4] Yes (from IE 9)[29] Yes[4] Yes[4] Yes

Yes Yes (from IE 11)[22] Yes Yes Yes

Yes Yes (from IE 11)[22] Yes Yes Yes

Yes Yes (from IE 11)[22] Yes Yes Yes
favicon.ico located in the website's root Yes Yes Optional[30] Optional[31] Yes
precedence: prefer root or (X)HTML linked version linked[25] linked[25] linked[25] ? ?

If links for both PNG and ICO favicons are present, PNG-favicon-compatible browsers select which format and size to use as follows. Firefox and Safari will use the favicon that comes last. Chrome for Mac will use whichever favicon is ICO formatted, otherwise the 32×32 favicon. Chrome for Windows will use the favicon that comes first if it is 16×16, otherwise the ICO. If none of the aforementioned options are available, both Chromes will use whichever favicon comes first, exactly the opposite of Firefox and Safari. Indeed, Chrome for Mac will ignore the 16×16 favicon and use the 32×32 version, only to scale it back down to 16×16 on non-retina devices. Opera will choose from any of the available icons completely at random.[32]

Only SeaMonkey doesn’t fetch favicon.ico files in the web site’s root by default.[33]

Device support

For Apple devices with the iOS operating system version 1.1.3 or later, such as the iPod Touch, iPhone, and iPad, as well as some Android devices,[34] it is possible to provide a custom icon that users can display on their Home screens using the Web Clip feature (called Add to Home Screen within Mobile Safari).[35][36] This feature is enabled by supplying a in the section of documents served by the web site. If the custom icon is not provided, a thumbnail of the web page will be put on the home screen instead.[37]

The recommended basic size for this icon is 60×60 pixels; for best display on the higher-resolution iPhone 4 screen, an icon size of 120×120 pixels is recommended.[36][38][39]

For the iPad and iPad 2, the basic size is 76×76 pixels. For the third-generation iPad, the high-resolution size would be 152×152 pixels.[40] Android tablets [via Chrome] prefer a 192x192 PNG icon.[41]

The icon file referenced by apple-touch-icon is modified to add rounded corners, drop shadow, and reflective shine.[36] Alternatively, an apple-touch-icon-precomposed icon may be provided to instruct devices not to apply reflective shine on the image.[36][37]

With rounded corners, added by iOS

Without reflective shine

No HTML is required by browsers or mobile devices to retrieve these icons, either.[37] The web site's root is the default location for the files apple-touch-icon-precomposed.png and apple-touch-icon.png (in order of priority).[36][37]

HTML5 recommendation for icons in multiple sizes

The current HTML5 specification recommends specifying multiple sizes for the icons, using the attributes rel="icon" sizes="space-separated list of icon dimensions" within a tag.[42] Multiple icon formats, including container formats such as Microsoft .ico and Macintosh .icns files, as well as Scalable Vector Graphics may be provided by including the icon's content type in the format type="file content-type" within the tag.

As of iOS 5, Apple mobile devices ignore the HTML5 recommendation and instead use the proprietary apple-touch-icon method detailed above. The Google Chrome web browser however, will select the closest matching size from those provided in the HTML headers to create 128×128 pixel application icons, when the user chooses the Create application shortcuts... from the "Tools" menu.

Animated favicons

Various browsers such as Chrome, Firefox and Opera support animation of favicons. A bug has been open for Firefox since 2001 requesting a way to disable the feature.[43][44]

Limitations and criticism

Due to the need to always check for it in a fixed location, the favicon can lead to artificially slow page-load time and unnecessary 404 entries in the server log if it is nonexistent.[6]

The W3C did not standardize the rel-attribute, so there are other key words such as shortcut icon that are also accepted by the user agent.[11][21]

Favicons are often manipulated as part of phishing or eavesdropping attacks against HTTPS webpages. Many web browsers display favicons near areas of the web browser's UI, such as the address bar, that are used to convey whether the connection to a website is using a secure protocol like TLS. By changing the favicon to a familiar padlock image an attacker can attempt to trick the user into thinking he or she is securely connected to the proper website. Automated man-in-the-middle attack tools such as SSLStrip utilize this trick.[45] In order to eliminate this, some web browsers display the favicon within the tab whilst displaying the security status of the protocol used to access the website beside the URL.[46]


  1. ^ a b c d Lane, Dave (9 August 2008). "Creating a Multi-Resolution Favicon Including Transparency with the GIMP". Archived from the original on 25 December 2010. Retrieved 25 February 2011. 
  2. ^ "What's With Google's New Mini Icon?". BBC. 20 January 2009. Retrieved 25 February 2011. That 16x16 pixel square is the size of the favicon in question, if not the scope. 
  3. ^ a b c Apple, Jennifer. "Favicon — How To Create A Favicon.ico". Retrieved 25 February 2011. 
  4. ^ a b c d e f g h i j "How to Add a Shortcut Icon to a Web Page".  
  5. ^ McGrew, Darin (26 April 2007). "Web Authoring FAQ – 8.11. How can I have a custom icon when people bookmark my site?". Retrieved 23 February 2011. 
  6. ^ a b c Heng, Christopher (7 September 2008). "What is Favicon.ico? Personalise Your Site's Bookmarks". Retrieved 23 February 2011. 
  7. ^ "Creating favicons with Adobe Photoshop and GoLive".  
  8. ^ "HTML 4.01 Specification". World Wide Web Consortium. 24 December 1999. Retrieved 14 March 2011. 
  9. ^ "XHTML™ 1.0: The Extensible HyperText Markup Language". World Wide Web Consortium. 26 January 2000. Retrieved 14 March 2011. 
  10. ^ Dubost, Karl (October 2005). "Web site meta data profile: favicon, ...". World Wide Web Consortium. Retrieved 23 February 2011. 
  11. ^ a b Dubost, Karl (24 October 2005). "How to Add a Favicon to your Site". World Wide Web Consortium. Retrieved 25 February 2011. 
  12. ^ Butcher, Simon (3 September 2003). "Published specification". Internet Assigned Numbers Authority. Retrieved 25 February 2011. 
  13. ^ Irish, Paul (15 December 2010). "commit 37b5fec090d00f38de64 to paulirish's html5-boilerplate".  
  14. ^ "Link Relations".  
  15. ^  
  16. ^ "HTML5 revision r6404". HTML5 Tracker. 
  17. ^ a b c David (19 July 2003). "Mozilla 0.9.6 Release Notes".  
  18. ^ a b "Bug 111373: don't allow animated site icons (favicons)". Retrieved 1 June 2014. 
  19. ^ Daniel Holbert (12 June 2015). "Bug 366324 – SVG site icons (favicons, shortcut icons) support – comment 55". Bugzilla@Mozilla. Mozilla. Retrieved 12 June 2015. 
  20. ^ "Issue 294179 - chromium - support svg favicon - An open-source project to help move the web forward. - Google Project Hosting". Google. 18 September 2013. Retrieved 17 August 2014. 
  21. ^ a b c d e f Davis, Jeff (27 December 2007). "why doesn't the favicon for my site appear in IE7?". jeffdav on code. Microsoft. Retrieved 11 March 2013. 
  22. ^ a b c d e f "Fun with Favicons". Microsoft. 7 September 2013. Retrieved 3 November 2013. 
  23. ^ "SVG favicon support.". Microsoft Connect. 2013-05-03. Retrieved 2014-09-04. 
  24. ^ a b c d e "Opera 7 for Windows Changelog". Opera Software. 28 January 2003. Retrieved 28 February 2011. 
  25. ^ a b c d e f g h i j k l m n o p q r s t u v w x y z Francis, Lewis (11 December 2007). "Chart of modern browser support for favicon". Retrieved 23 February 2011. 
  26. ^ "Firefox deems favicons risky, banishes them from address bar". Engadget. Retrieved 2012-09-10. 
  27. ^ "Create Application Shortcuts". Google. 22 March 2013. 
  28. ^ "Opera 10.0 beta 2 for Windows changelog". Opera Software. 16 July 2009. Retrieved 27 February 2011. 
  29. ^ "IE9 RC Minor Changes List". Microsoft. 11 February 2011. Retrieved 16 November 2013. 
  30. ^ Firefox only accepts favicon.ico in the web site's root without a tag if the setting is set to true in about:config. The default value is true. If set to false, these favicons are ignored.
  31. ^ Opera loads /favicon.ico only if Multimedia/Always load favicon option in opera:config is set to 1. See Opera Support page for more details.
  32. ^  
  33. ^  
  34. ^  
  35. ^ "iPhone Human Interface Guidelines for Web Applications: Metrics, Layout Guidelines, and Tips". Apple Inc. Retrieved 2010-05-27. 
  36. ^ a b c d e "Safari Web Content Guide: Specifying a Webpage Icon for Web Clip". Apple Inc. 15 November 2010. Retrieved 25 February 2011. 
  37. ^ a b c d McLellan, Drew (17 January 2008). "How To Set an Apple Touch Icon for Any Site". Allinthe Retrieved 11 March 2011. 
  38. ^ "iOS Human Interface Guidelines: Custom Icon and Image Creation Guidelines, Table 8-1". Apple Inc. Retrieved 2011-07-16. 
  39. ^ "Apple-touch-icon". Apple Inc. Retrieved 25 February 2011. 
  40. ^ "iPad Apple Touch Icon". Retrieved 2012-02-12. 
  41. ^ "Android Chrome and its favicon". Retrieved 2014-09-09. 
  42. ^ "'"W3C HTML5 Editor's Draft 26 June 2012, Section 'Link type "icon". World Wide Web Consortium. Retrieved 2012-07-15. 
  43. ^ "Bug 111373 - don't allow animated site icons (favicons)". 2001-11-21. 
  44. ^ "Firefox Bug 111373 - don't allow animated site icons (". Hacker News. 7 July 2015. 
  45. ^ Marlinspike, Moxie (21 February 2011). "Defeating Ssl Using Sslstrip (Marlinspike Blackhat)". (see description of video). SecurityTube. Retrieved 9 July 2011. 
  46. ^ "Firefox version 14 features". Retrieved 18 July 2012. 

External links

  • Proposals with the W3C web standards organization on how to add a Favicon
  • Creating a favicon Stack Overflow
  • Systems and Methods Involving Favicons 2008 patent application
  • Favicons at DMOZ
  • Inventing favicon.ico - blog post by Internet Explorer program manager at Microsoft.
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.