Javascript HTML5-html、前缀和元相关
我是HTML5新手。我做了一些关于前缀和OGP的研究,但我仍然不能理解以下内容Javascript HTML5-html、前缀和元相关,javascript,jquery,html,webpage,Javascript,Jquery,Html,Webpage,我是HTML5新手。我做了一些关于前缀和OGP的研究,但我仍然不能理解以下内容 <head prefix="og: http://ogp.me/ns#"> <title>something</title> <meta property="og:title" content="something"/> <meta prefix="og: http://ogp.me/ns#" property="og:image"
<head prefix="og: http://ogp.me/ns#">
<title>something</title>
<meta property="og:title" content="something"/>
<meta prefix="og: http://ogp.me/ns#" property="og:image"
content="http://something.com/img/social-image.png" />
</head>
非常感谢 您所描述的被称为开放图形协议,它本质上意味着您正在使用上面的模板将网页转换为图形对象。您需要四个部分:
og:title
,og:type
,og:url
,以及og:image
,这些部分都有详细的描述。这是使用Open Graph协议所需的基本元数据-如果您没有,Open Graph将无法工作。在头
标记中添加前缀是否有效?谢谢,如果我不理解您,那么
是错误的
<meta prefix="og: http://ogp.me/ns#" property="og:image"
content="http://something.com/img/social-image.png" />