Favicon does not work in IE

1

Good afternoon everyone. I'm doing HTML layout tests. I entered IE to see how it was and noticed that the <link rel="shortcut icon" href="img/body/icon-amova.png"/> code was not working in IE 10.

I researched articles:

link

link

And I changed my code to

 <link rel="icon" href="img/body/icon-amova.ico" type="image/x-icon"/>

Please note that I have changed the file extension and it works fine in other browsers, but even so, it does not work in IE 10.

Then I found an answer here in SO

Favicon does not appear

And I changed my code to:

<link rel="icon" href="http://localhost/amova/img/body/icon-amova.ico" type="image/x-icon" sizes="32x32"/>

Notice that I used the full path, put the tag sizes , cleared cache information. But nothing has changed.

Any other suggestions?

    
asked by anonymous 25.04.2017 / 18:01

1 answer

1

Put the following code inside the <head> of your html:

<!DOCTYPE html>
<html>
    <head>
       <link rel="icon" href="img/body/icon-amova.ico" type="image/x-icon" />
       <link rel="shortcut icon" href="img/body/icon-amova.ico" type="image/x-icon" />
    </head>
    <body>
        Conteúdo do seu site...
    </body>
</html>

Your image should actually be a .ico file, just do not just rename it.

If it does not work try to use a .png file instead of the icon file.

    
25.04.2017 / 19:13