I'm new to Facebook Open Graph Protocol. I have been trying to figure out what the meaning of the HTML prefix
attribute is. The closest post on Stack Overflow I could find dealing with this subject is this post which was very helpful as it deals with what the differences are among the various possible syntaxes and which one to use.
However the post does not say anything about what this prefix
attribute is or what it does. AFAIK this is not a standard HTML attribute. I was able to find this document which I think is where the W3C defines this attribute but was not able to make any sense of it.
Could someone please explain to me:
What does the
prefix
attribute do?Can I write
<html prefix="og:http://ogp.me/ns#">
instead of
<html prefix="og: http://ogp.me/ns#">
or would that be a syntax error?
Can I include multiple
prefix
attributes for any given HTML tag?<head prefix="a: http://www.aaa.com/ns#" prefix="b: http://www.bbb.com/ns#">
Based on my knowledge of HTML, this would be wrong, but then
prefix
is a nonstandard attribute. So perhaps, what I would like to know is, can I write:<head prefix="a: http://www.aaa.com/ns# b: http://www.bbb.com/ns#">
or does specifying multiple prefixes at any place in the HTML tree not make sense for some reason?
If this
prefix
tag is not part of the HTML spec, how would submitting a page containing this attribute to a code validator ever result in my code being standards compliant?
Thank you for answering my questions.