Resources: Code

Load a favicon for your site

27 September 2012

Most sites load it by default if you upload your website icon (favicon.ico) into the root directory, but some browsers (cough *Internet Explorer* cough cough) don’t bother unless you explicitly state where it is. The code below will make it happen!

emember to empty your browser cache before refreshing your browser.

<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="shortcut-icon" type="image/x-icon" href="/favicon.ico" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />

Tags:

Let's work together