在验证w3c中,facebook meta标签中没有属性“ property”

| 我们可以用
meta name=\"fb:admins\"
吗 代替
meta property=\"fb:admins\"
用于w3c验证?     
已邀请:
        尽管这是一个古老的问题,但我正在回答,因为我认为这对于将来希望获得此信息的人来说很有价值。埃文(Evan \)说不会通过验证时可能是对的,但我认为答案是您想保留
property=\"\"
属性。从有关此问题的旧Facebook开发人员论坛帖子中获取的信息确实表明您的文档应该是XHTML + RDFa文档。这要感谢W3C在
DOCTYPE
声明中的生效:
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML+RDFa 1.0//EN\" \"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\" 
    version=\"XHTML+RDFa 1.0\"
    xmlns:og=\"http://ogp.me/ns#\"
    xml:lang=\"en\">
  <head>
    <title>Virtual Library</title>
    <meta property=\"og:title\" content=\"My Website\"/>
  </head>
  <body>
    <p>Moved to <a href=\"http://example.org/\">example.org</a>.</p>
  </body>
</html>
您可以在W3C规范的RDFa中找到更多信息,并在此特定示例
<meta property=\"\"/>
中找到更多信息。     
        不,您会得到以下信息:
Line 1, Column 123: Bad value fb:app_id for attribute name on element meta: Keyword fb:app_id is not registered.
…=\"fb:app_id\" content=\"176557225718913\"><meta charset=\"utf-8\"><meta name=\"descr…
Syntax of metadata name:
A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.
    

要回复问题请先登录注册