Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to validate my document that has the following facebook comments tag

<fb:comments width="425"></fb:comments>

I am getting validation error:

Line 333, Column 45: Element name fb:comments cannot be represented as XML 1.0.

Element fb:comments not allowed as child of element div in this context. (Suppressing further errors from this subtree.)

Any idea how to fix it?


share|improve this question

You need to use an appropriate doctype.

This has been covered (for HTML docs) on StackOverflow: http://stackoverflow.com/questions/2761622/new-facebook-like-button-html-validation

share|improve this answer
Even with the appropriate doctype facebook comments will not validate as valid XHTML HTML or any type of HTML. They are just not standard tags. In your case, dont worry about it, because they are automatically parsed and fixed by facebook plugins on the page. – Frank Nov 17 '10 at 16:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.