Image icon beside the site URL

前端 未结 9 2017
甜味超标
甜味超标 2020-12-06 16:50

I would like to have information about the icons which are displayed alongside the site URLs on a web browser. Is this some browser specific feature? Where do we specify the

9条回答
  •  醉酒成梦
    2020-12-06 17:15

    I believe you're referring to the Favicon, which allows a website to specify a 16x16 (or larger) image which is displayed in the address bar next to the URL in most modern browsers.

    Some browsers just pick the file called favicon.ico which is in the root of your web folder, whereas others require it to be specified in the of the HTML using the following code,

    
    

    This was originally the way it was done with IE, but that doesn't conform to standards (because of the space in the rel), so most browsers now let you do it as follows, where you can use any standard image format, not just .ico

    
    

提交回复
热议问题