Favicon
A favicon /ˈfævɪkɒn/ (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[1] small icons, most commonly 16×16 pixels, associated with a particular Web site or Web page.[1][2] A web designer can create such an icon and install it into a Web site (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]
History
In March 1999, Microsoft released Internet Explorer 5, which supported favicons for the first time.[4] Originally, the favicon was a file called favicon.ico
placed in the root directory (e.g., http://en.wikipedia.org/favicon.ico) of a web site. It was used in 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 support the favicon without bookmarking.[6]
Standardization
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 standards use a link element with a rel
attribute in the <head>
section of the document to specify the file format, file name and a location can be specified for any Web site directory. The consequences were that the use of a reserved location on a Web site is no longer required and the favicon file can be located anywhere in the Web directory tree and any image file format can be used.[10][11]
In 2003, the .ico
format was registered with the Internet Assigned Numbers Authority (IANA) under the MIME type image/vnd.microsoft.icon
.[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 <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
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.
Legacy
Internet Explorer 1-10 supports only the ICO file format; simply changing the filename extension of an image to .ico
without converting it to an ICO file will result in an error and not displaying the favicon. 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.
Browser | ICO | PNG | GIF | animated GIFs | JPEG | APNG | SVG |
---|---|---|---|---|---|---|---|
Firefox | 1.0[17] | 1.0[17] | 1.0[17] | Yes | Yes | 3.0 | No[18] |
Google Chrome | Yes | Yes | 4.0 | 4.0 | 4.0 | No | ? |
Internet Explorer | 5.0[19] | 11.0[20] | 11.0[20] | No[19] | No[19] | No[19] | No[19] |
Opera | 7.0[21] | 7.0[21] | 7.0[21] | 7.0[21] | 7.0[21] | 9.5 | ? |
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 possibilities 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[22] > v13: No[23] |
Yes | Yes | Yes[22] | Yes[22] | Yes[22] |
Google Chrome | No[22] | No | Yes[22] | Yes[22] | 1.0[22] | 1.0[24] |
Internet Explorer | 7.0[22] | No | 5.0[22] | 5.0[22] | 7.0[22] | 5.0[22] |
Opera | 7.0[22] | No | 7.0[22] | 7.0[22] | 7.0[22] | 7.0[22] |
Safari | Yes[22] | No | No[22] | Yes[22] | No[22] | No[22] |
Opera Software added the ability to change the favicon in the Speed Dial in Opera 10.[25]
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 | |
---|---|---|---|---|---|
<link rel="shortcut icon" href="http://example.com/myicon.ico" /> |
Yes[4] | Yes[4][19] | Yes[4] | Yes[4] | Yes |
<link rel="icon" href="http://example.com/image.ico" /> |
Yes | Yes (from IE 11)[20] | Yes | Yes | Yes |
<link rel="icon" type="image/vnd.microsoft.icon" href="http://example.com/image.ico" /> |
Yes | Yes (from IE 9)[20] | Yes | Yes | Yes |
<link rel="icon" type="image/png" href="http://example.com/image.png" /> |
Yes | Yes (from IE 11)[20] | Yes | Yes | Yes |
<link rel="icon" type="image/gif" href="http://example.com/image.gif" /> |
Yes | Yes (from IE 11)[20] | Yes | Yes | Yes |
<link rel="icon" type="image/x-icon" href="http://example.com/image.ico"/> |
Yes[4] | Yes (from IE 9)[26] | Yes[4] | Yes[4] | Yes |
favicon.ico located in the website's root |
Yes | Yes | Optional[27] | Optional[28] | Yes |
precedence: prefer root or (X)HTML linked version | linked[22] | linked[22] | linked[22] | ? | ? |
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 if 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.[29]
Only SeaMonkey doesn’t fetch favicon.ico
files in the web site’s root by default.[30]
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,[31] 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).[32][33] This feature is enabled by supplying a <link rel="apple-touch-icon" ...>
in the <head>
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.[34]
The recommended basic size for this icon is 60×60 pixels, with 90-degree corners; for best display on the higher-resolution iPhone 4 screen, an icon size of 120×120 pixels is recommended.[33][35][36]
For the iPad and iPad 2, the basic size is 76×76 pixels with 90-degree corners. For the third-generation iPad, the high-resolution size would be 152×152 pixels.[37]
The icon file referenced by apple-touch-icon
is modified to add rounded corners, drop shadow, and reflective shine.[33] Alternatively, an apple-touch-icon-precomposed
icon may be provided to instruct devices not to apply reflective shine on the image.[33][34]
- With rounded corners, reflective shine
<link rel="apple-touch-icon" href="somepath/image.png" />
- Without reflective shine
<link rel="apple-touch-icon-precomposed" href="somepath/image.png" />
As in case of favicon.ico
file, browsers and mobile devices do not require any HTML to retrieve these icons.[34] Default location for the files are apple-touch-icon-precomposed.png
and apple-touch-icon.png
(in order of priority) located in the web site's root.[33][34]
HTML5 recommendation for icons in multiple sizes
The current HTML5 specification recommends specifying size icons in multiple sizes using the attributes rel="icon" sizes="space-separated list of icon dimensions"
within a <link>
tag.[38] 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 form of type="file content-type"
within the <link>
tag.
Apple mobile devices running iOS 5 and above ignore the HTML5 recommendation and 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.
Limitations and criticism
Due to the need to always check for it in a fixed location, the favicon will create extra traffic and garbage 404 entries in the server log if it is nonexistent.[6]
Some old browsers such as the Internet Explorer for Mac did not support the favicon or had problems in updating the favicon if a new one was uploaded.[7][39] Another disadvantage was that some web hosts did not allow the use of ico files.[39]
The W3C recommendation only works in HTML or XHTML and not in other systems such as gopher.[11] 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][19]
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 SSL. 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.[40] 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.[41]
References
- ↑ 1.0 1.1 1.2 1.3 Lane, Dave (9 August 2008). "Creating a multi-resolution favicon including transparency with the GIMP". egressive.com. Retrieved 25 February 2011.
- ↑ "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.0 3.1 3.2 Apple, Jennifer. "Favicon — How To Create A Favicon.ico". Photoshopsupport.com. Retrieved 25 February 2011.
- ↑ 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 "How to Add a Shortcut Icon to a Web Page". Microsoft Developer Network. Microsoft. Retrieved 15 March 2010.
- ↑ McGrew, Darin (26 April 2007). "Web Authoring FAQ – 8.11. How can I have a custom icon when people bookmark my site?". htmlhelp.com. Retrieved 23 February 2011.
- ↑ 6.0 6.1 6.2 Heng, Christopher (7 September 2008). "What is Favicon.ico? Personalise Your Site's Bookmarks". thesitewizard.com. Retrieved 23 February 2011.
- ↑ 7.0 7.1 "Creating favicons with Adobe Photoshop and GoLive". Adobe GoLive. Archived from the original on 7 December 2003. Retrieved 25 February 2011.
- ↑ "HTML 4.01 Specification". World Wide Web Consortium. 24 December 1999. Retrieved 14 March 2011.
- ↑ "XHTML™ 1.0: The Extensible HyperText Markup Language". World Wide Web Consortium. 26 January 2000. Retrieved 14 March 2011.
- ↑ Dubost, Karl (October 2005). "Web site meta data profile: favicon, ...". World Wide Web Consortium. Retrieved 23 February 2011.
- ↑ 11.0 11.1 11.2 Dubost, Karl (24 October 2005). "How to Add a Favicon to your Site". World Wide Web Consortium. Retrieved 25 February 2011.
- ↑ Butcher, Simon (3 September 2003). "Published specification". Internet Assigned Numbers Authority. Retrieved 25 February 2011.
- ↑ Irish, Paul (15 December 2010). "commit 37b5fec090d00f38de64 to paulirish's html5-boilerplate". GitHub. Retrieved 25 February 2011.
- ↑ "Link Relations". IANA.
- ↑ Ian Hickson (19 January 2011). "HTML is the new HTML5". The WHATWG Blog. WHATWG.
- ↑ "HTML5 revision r6404". HTML5 Tracker.
- ↑ 17.0 17.1 17.2 David (19 July 2003). "Mozilla 0.9.6 Release Notes". Mozilla. Retrieved 23 February 2011.
- ↑ Works only on first load of the page.
Daniel Holbert (14 April 2011). "Bug 366324 – SVG site icons (favicons, shortcut icons) support – comment 22". Bugzilla@Mozilla. Mozilla. Retrieved 23 February 2011. - ↑ 19.0 19.1 19.2 19.3 19.4 19.5 19.6 Davis, Jeff (27 December 2007). "why doesn't the favicon for my site appear in IE7?". jeffdav on code. Microsoft. Retrieved 11 March 2013.
- ↑ 20.0 20.1 20.2 20.3 20.4 20.5 "Fun with Favicons". Microsoft. 7 September 2013. Retrieved 3 November 2013.
- ↑ 21.0 21.1 21.2 21.3 21.4 "Opera 7 for Windows Changelog". Opera Software. 28 January 2003. Retrieved 28 February 2011.
- ↑ 22.0 22.1 22.2 22.3 22.4 22.5 22.6 22.7 22.8 22.9 22.10 22.11 22.12 22.13 22.14 22.15 22.16 22.17 22.18 22.19 22.20 22.21 22.22 22.23 22.24 22.25 Francis, Lewis (11 December 2007). "Chart of modern browser support for favicon". informationgift.com. Retrieved 23 February 2011.
- ↑ "Firefox deems favicons risky, banishes them from address bar". Engadget. Retrieved 2012-09-10.
- ↑ "Create Application Shortcuts". Google. 22 March 2013.
- ↑ "Opera 10.0 beta 2 for Windows changelog". Opera Software. 16 July 2009. Retrieved 27 February 2011.
- ↑ "IE9 RC Minor Changes List". Microsoft. 11 February 2011. Retrieved 16 November 2013.
- ↑ Firefox only accepts
favicon.ico
in the web site's root without a<link>
tag if the settingbrowser.chrome.favicons
is set totrue
inabout:config
. The default value istrue
. If set tofalse
, these favicons are ignored. - ↑ Opera loads
/favicon.ico
only ifMultimedia/Always load favicon
option inopera:config
is set to1
. See Opera Support page for more details. - ↑ Jonathan T. Neal (16 January 2013). "Understand the Favicon". Retrieved 30 May 2013.
- ↑ Mathias Bynens (14 April 2010). "rel="shortcut icon" considered harmful". Retrieved 15 November 2011.
- ↑ Mathias Bynens (2 March 2011). "Everything you always wanted to know about touch icons". Retrieved 15 November 2011.
- ↑ "iPhone Human Interface Guidelines for Web Applications: Metrics, Layout Guidelines, and Tips". Apple Inc. Retrieved 2010-05-27.
- ↑ 33.0 33.1 33.2 33.3 33.4 "Safari Web Content Guide: Specifying a Webpage Icon for Web Clip". Apple Inc. 15 November 2010. Retrieved 25 February 2011.
- ↑ 34.0 34.1 34.2 34.3 McLellan, Drew (17 January 2008). "How To Set an Apple Touch Icon for Any Site". Allinthe head.com. Retrieved 11 March 2011.
- ↑ "iOS Human Interface Guidelines: Custom Icon and Image Creation Guidelines, Table 8-1". Apple Inc. Retrieved 2011-07-16.
- ↑ "Apple-touch-icon". Apple Inc. Retrieved 25 February 2011.
- ↑ "iPad Apple Touch Icon". Retrieved 2012-02-12.
- ↑ "W3C HTML5 Editor's Draft 26 June 2012, Section 4.12.4.5 'Link type "icon"'". World Wide Web Consortium. Retrieved 2012-07-15.
- ↑ 39.0 39.1 Altom, Tim. "Creating Your Own Favicon.ico Icon For IE5". Web Developer's Journal. QuinStreet. Retrieved 11 March 2011.
- ↑ Marlinspike, Moxie (21 February 2011). "Defeating Ssl Using Sslstrip (Marlinspike Blackhat)". (see description of video). SecurityTube. Retrieved 9 July 2011.
- ↑ "Firefox version 14 features". Retrieved 18 July 2012.
External links
Look up favicon in Wiktionary, the free dictionary. |
Wikimedia Commons has media related to Favicons. |
- Proposals with the W3C web standards organization on how to add a Favicon
- Systems and Methods Involving Favicons 2008 patent application
- Favicons on the Open Directory Project
- animated favicon
|
|