Possible Duplicate:
How important is W3C XHTML/CSS validation when finalizing work?
I read about validation from many sources and most will say always validate your web page. It is important that your page validate.
I understand the concept. But my site does not "validate", yet it works across every major browsers, does not produce errors in those browsers and looks correct in all browsers.
This is an example of an error I get
Error Line 38, Column 28: document type does not allow element "h3" here
var $jsuccessmessage = "<h3>We will be in contact soon. </h3>"; // success mess…
The element named above was found in a context where it is not allowed. This
could mean that you have incorrectly nested elements -- such as a "style"
element in the "body" section instead of inside "head" -- or two elements
that overlap (which is not allowed).
So I ask, how important is it that I correct these errors and do my best to produce fully validated code?
Note: I am using XHTML 1.0 Transitional for my doctype.