How to set-up a favicon?

前端 未结 11 2162
梦毁少年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 15:58

    Below given some information about fav Icon

    What Is FavIcon?  FavIcon is nothing but small image which appears top left along with the application address bar title.Standard size specification for favicon.ico is 16 by 16 pixel. Please see below attached figure.

    How It Works ?  Usually we add our FavIcon.ico image in the route solution folder and automatically application picks it while running. But most of the time we might have to use below both link reference.

                   
                   
    

    Some browser expect one (rel="icon") Some other browser expect other rel="shortcut icon"

    Type=”image/x-icon” OR Type=”image/ico”: once expect exact ico image and one expect any image even formatted from .jpg or .pn ..etc.

     We have to use above two tags to the common pages like – Master page , Main frame which is getting used in all the pages

提交回复
热议问题