What is <link rel=“image_src”>

前端 未结 3 2106
刺人心
刺人心 2021-01-03 17:19

Today I came across a tag. I don\'t know about it, so I use google. Google tell me that this tag are similar to og:image

相关标签:
3条回答
  • 2021-01-03 17:59

    The rel attribute specifies the type of the link, i.e. the kind of the relationship between the document and the linked resource. Usually just a few keywords, like stylesheet and icon, are used. Although many other keywords have been proposed and registered, most of them are write-only: they are meant to express something, but nobody cares (no software uses the information).

    The extension mechanisms of HTML5 include, in the description of link types, a somewhat obscure mechanism that allows, in theory, anyone register his favorite keyword in the existing rel values wiki to make documents using it as rel value “conforming”.

    And image_src has indeed been registered there, with the information that it is used to “specify a Webpage Icon for use by Facebook, Yahoo, Digg, etc.”, no specification has been identified but an article about it is linked to, and it is “probably redundant with rel=icon”.

    0 讨论(0)
  • 2021-01-03 18:00

    You can use this tag to use an image as the thumb for link share.

    0 讨论(0)
  • 2021-01-03 18:10

    When someone posts a link to your site on social media, such as Facebook, the image that is displayed with your link is usually the first one in your code. This may not be the image that best fits defines your site, and it may not fit well in the small box that Facebook posts. The link rel="image_src" tag lets you control what image (or images, you can have more than one by stacking separate references) is displayed alongside your link.

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