I followed the instructions at Facebook Developers Page, but this is still not validating.
Why is this?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta property="og:image" content="image.png" >
more meta
</head>
<html>
The
xmlnsproperty is only allowed in XHTML documents, you can’t specify that in HTML. Try:Also, it appears that even with the document type changed to XHTML, the
propertyattribute is still not allowed on ametaelement.The following XHTML only produces the single error for the
propertyattribute:Edit: I have found a document type that you can use that will pass at the W3C checker. It appears that this document type already uses XHTML 1.1 even though the title says 1.0 (not sure).