Opengraph W3C有效吗? [英] Opengraph W3C valid?

查看:135
本文介绍了Opengraph W3C有效吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道opengraph标记是否为W3C有效,
当我尝试验证它时,出现以下错误:

I would like to know if the opengraph markup is W3C valid, I'm getting the following error when I try to validate it:

Line 14, Column 17: there is no attribute "PROPERTY"
 <meta property="og:site_name" content="sitename">

万一它无效,它会影响我的pagerank和其他搜索引擎算法吗?

In case it's not valid, will it impact my pagerank and other search engines algo?

是否可以隐藏这些属性?

Is it possible to cloak those properties?

推荐答案

在正常情况下无效HTML doctypes,但是可以使用doctype来验证包括Open Graph在内的XHTML文档:
$ b

It's not valid in the normal HTML doctypes, but there is a doctype you can use to validate XHTML documents including Open Graph:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

看到这个问题:属性属性的Html验证错误

这篇关于Opengraph W3C有效吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆