Image icon beside the site URL

前端 未结 9 1989
甜味超标
甜味超标 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 16:54

    These icons are called favicons

    Most web browsers support http://mysite.com/favicon.ico but the proper way to do it is to include an icon meta tag in the head profile.

    <head profile="http://www.w3.org/2005/10/profile">
    <link rel="icon" 
          type="image/png" 
          href="/somewhere/myicon.png" />
    […]
    </head>
    

    Source from the W3C itself.

    Your best bet is to probably do both with the same icon image.

    0 讨论(0)
  • 2020-12-06 16:57

    These are favicons - more info on that page.

    Basically, .ico files in the root directory on the webserver.

    0 讨论(0)
  • 2020-12-06 17:05

    This is called favicon you can look on this tutorial using favicon in asp.net application LINK

    0 讨论(0)
  • 2020-12-06 17:09

    The easiest way to get that info is by this simple web app

    link text

    You only have to type the url of the page and it returns all the image properties

    0 讨论(0)
  • 2020-12-06 17:12

    It's called a favicon.

    You might want to check out these three questions:

    • What is currently the best way to get a favicon to display in all browsers that support Favicons?
    • Why no favicon for my web site?
    • Preferred way to use favicons?
    0 讨论(0)
  • 2020-12-06 17:13

    I will just add that some sites use an animated Gif as favicon. Which can be seen as über cool or supremely annoying, depending on your tastes... And probably not supported by all browsers.

    0 讨论(0)
提交回复
热议问题