How to set-up a favicon?

前端 未结 11 2190
梦毁少年i
梦毁少年i 2020-12-02 15:34

I am trying to do a very simple preliminary exercise to setting up a website which is creating a favicon.

This is the code I am using:



        
11条回答
  •  余生分开走
    2020-12-02 16:04

    There is a very simple method to set a favicon, which had been around for a long time AFAIK. Place the favicon.ico file in the default location. i.e

    http://www.yoursite.com/favicon.ico
    

    This works in almost every browser without a tag. However, this works only if it is an *.ico file. PNGs and other formats still have to be linked with a tag

提交回复
热议问题