Favicon doesn't display in IE and Chrome

11,341

Also add another tag to make it like this for increased browser coverage:

<LINK REL="icon" HREF="favicon.ico" TYPE="image/x-icon">
<LINK REL="shortcut icon" HREF="favicon.ico" TYPE="image/x-icon"> 
Share:
11,341
Admin
Author by

Admin

Updated on June 23, 2022

Comments

  • Admin
    Admin almost 2 years

    I'm really puzzled about why my favicon doesn't show up in either IE9 or Chrome. It does show in Firefox though. I've used favicons before and never had such troubles, and my code is quite trivial:

    <!DOCTYPE HTML>
    <html>
    <head>
        <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    </head>
    <body>
    
    </body>
    </html>
    

    The file favicon.ico I use is directly taken from Wikipedia (for testing purpose to be sure it's not a faulty ICO file) and put in the same folder as the HTML file. I tried clearing the browser's caches and restarting them, but nothing works. Also, this is not on a web server, I open the HTMLs directly from the file system.