Why favicon.ico local tests don't work

as mentioned above, I just put this file locally in the root directory of the website and did not add

to the page.
<link rel="icon" href="favicon.ico" type="image/x-icon" />

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

so local browsers can"t display it? Or is there any other way?

Mar.15,2022

is tested on the server side. By default, the file of favicon.ico in the root directory is recognized as the ico of the web page
on the local side. Chrome, opera and firefox support adding ico, through the < link > tag, but IE and safari do not support

.
Menu