Mobile app version of vmapp.org
Login or Join
Caterina187

: OpenGraph tags and HTML5 validity 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.

@Caterina187

Posted in: #Facebook #FacebookGraph #Html5 #Validation

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=''>

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Caterina187

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ravi8258870

Ultimately this type of metadata is never going to be part of the W3C spec and is therfore never going to be seen as valid by any validation engine.

I've used name instead of property before. Facebook's validator throws a warning but still parses the data and the page then passes a w3c validation.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme