'What is major different between favicon,fav-icon and icon 2022?
I know about favicon. <link rel="favicon" href="#" type="image/png">.
In this code favicon is a small image for a website that denotes the page Brand that can help to identify the original page. In other words, a favicon is a short icon or tab icon, or URL icon that contains 16x16 pixels or 32x32 pixels.
Here I saw three favicon link.
please guide me the different between these three <link rel="fav-icon" href="#" type="image/png"> <link rel="favicon" href="#" type="image/png"> <link rel="icon" href="#" type="image/png">.
Solution 1:[1]
The preferred and valid rel attribute value for favicon or an icon representing the current document is rel="icon". The other two in your post are not a valid one
<link rel="icon" href="#" type="image/png">
Sometimes rel="shortcut icon" is also used, but this link type is non-conforming, ignored and web authors must not use it anymore. Here is the official documentation link to read more
<link rel="shortcut icon" href="favicon.ico">
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Tushar |
