OpenGraph tags and HTML5 validity
Posted
by
netmano
on Pro Webmasters
See other posts from Pro Webmasters
or by netmano
Published on 2012-03-01T11:14:53Z
Indexed on
2012/04/16
11:45 UTC
Read the original article
Hit count: 323
I have a HTML5 based page, and I inculded the OpenGraph tags according to it's documentation. Also I checked with Facebook Debug, and it can parse the metadata. But when I use W3C Validator, it reports the OG tags as error:
Attribute content not allowed on element meta at this point.
<meta property="fb:admins" content="...." />
Attribute content not allowed on element meta at this point.
<meta property="og:url" content="http://www....">
They are all in the <head>
.
I would need my page be "valid" HTML5 and OG tags, as well. Could you help me giving a hint how can it be achieved?
UPDATE:
The name
version also invalid: <meta name='fb:admins' content=''>
© Pro Webmasters or respective owner