Home > other >  add a favicon to a web page with html5
add a favicon to a web page with html5

Time:12-11

When I want to add a favicon I write this tag::

<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
But when I open the web page I don't see the favicon. Why?

CodePudding user response:

Try this

 <link href="path/favicon.png" rel="icon">

CodePudding user response:

Instead of naming it favicon.ico you should rename the picture into Icon.png and change the code to <link rel="shortcut icon" type="image/png" href="Icon.png">

  • Related