Image formats supported by favicon

Source: Internet
Author: User

You can set favicon for a website in either of the following ways:

1. Put an image named favicon. ico in the root directory of the website, which will be automatically obtained by the browser;

2, in the page through the <link rel = "shortcut icon" href = ""/>.


Generally, favicon uses ico format. However, modern browsers such as chrome, firefox, and IE11 in the root directory support PNG and GIF (No animation) formats. For the favicon format set through link, IE7 + and modern browsers support PNG and GIF formats, but the effect on IE7 is poor.

For Apple devices, we can write<link rel="apple-touch-icon" href="somepath/image.png" />、<Link rel = "apple-touch-icon-precomposed" href = "somepath/image.png"/>.


  Google Chrome Internet Explorer Firefox Opera Safari
<link rel="shortcut icon" href="" />
Yes[4] Yes[4][19] Yes[4] Yes[4] Yes
<link rel="icon" href="" />
Yes Yes (from IE 11)[20] Yes Yes Yes
<link rel="icon" type="image/" href="" />
Yes Yes (from IE 9)[20] Yes Yes Yes
<link rel="icon" type="image/png" href="" />
Yes Yes (from IE 11)[20] Yes Yes Yes
<link rel="icon" type="image/gif" href="" />
Yes Yes (from IE 11)[20] Yes Yes Yes
<link rel="icon" type="image/x-icon"href=""/>
Yes[4] Yes (from IE 9)[26] Yes[4] Yes[4] Yes
favicon.icoLocated 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] ? ?




Http:// (v = vs.85). aspx



Http:// B /ieinternals/archive/2013/09/08/internet-explorer-favicons-png-link-rel-icon-caching.aspx

Http:// B /jeffdav/archive/2007/03/01/why-doesn-t-the-favicon-for-my-site-appear-in-ie7.aspx

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.