Skip to content

Instantly share code, notes, and snippets.

@agentmilindu
Created January 30, 2013 03:34
Show Gist options
  • Save agentmilindu/4670378 to your computer and use it in GitHub Desktop.
Save agentmilindu/4670378 to your computer and use it in GitHub Desktop.
Given the limitations of Chrome, Safari, and IE, this method will give every browser the best favicon experience. IE will ignore the <link rel="icon"> and use the ICO favicon found in the root of the domain as '/favicon.ico'
<link rel="apple-touch-icon" href="path/to/touchicon.png">
<link rel="icon" href="path/to/favicon.png">
<!--[if IE]><link rel="shortcut icon" href="path/to/favicon.ico"><![endif]-->
<!-- or, set /favicon.ico for IE10 win -->
<meta name="msapplication-TileColor" content="#D83434">
<meta name="msapplication-TileImage" content="path/to/tileicon.png">
@agentmilindu
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment