Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opengraph W3C valid?

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">

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

Is it possible to cloak those properties?

like image 996
Roch Avatar asked May 14 '10 12:05

Roch


2 Answers

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">

See this question: Html validation error for property attribute

like image 64
bobince Avatar answered Oct 15 '22 14:10

bobince


No, it isn't. That is why the validator reports an error.

like image 43
Quentin Avatar answered Oct 15 '22 14:10

Quentin