: Why does Open Graph use As far as I can tell, property is not a valid attribute of the <meta> tag in any of HTML 3, 4, XHTML-Transitional or XHTML-Strict. So why does the Open Graph
As far as I can tell, property is not a valid attribute of the <meta> tag in any of HTML 3, 4, XHTML-Transitional or XHTML-Strict. So why does the Open Graph Protocol (and Facebook's API docs) specify example code like this?
<html xmlns:og="http://ogp.me/ns#">
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock" />
<meta property="og:type" content="movie" />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
This doesn't validate. Changing property to name does validate, and I can verify that, at least on Facebook, it still works as intended. So why do they use property in their example code?
opengraphprotocol.org/
More posts by @Phylliss660
1 Comments
Sorted by latest first Latest Oldest Best
They define their own custom DTD (definition of DTD). This allows them to create their own extension to the HTML standard and as long as they follow their own DTD they are technically ok. It won't be valid HTML but it doesn't have to be.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.