Icon in the tab

I can't make an html5 icon in the tab that is usually displayed, it doesn't work like this:

<link rel="shortcut icon" href="ico.png" type="image/x-icon">
 1
Author: Nicolas Chabanovsky, 2011-06-11

1 answers

Icon:

To explicitly specify the location of favicon. ico, enter the following line in the code of your site's page inside the head section:

<link rel="icon" type="image/png" href="/someimage.png" />

If it does not cling, then

  1. check paths (put in the root),
  2. check different formats and sizes (png, ico, etc.),
  3. check different browsers (IE or Chrome),
  4. check the type match (type= "image/png" for png).
 2
Author: stanislav, 2020-06-12 12:52:24