Ok, so I am in the process of validating my wordpress template that I am working on. What's wrong here? http://validator.w3.org/check?uri=h...(detect+automatically)&doctype=Inline&group=0 Thanks! -David
yeah, but it is a .php page so how do I save it as .xhtml? I want to be validated, but with a .php page of course. Thanks, David
You don't that only counts for static pages. Sort out the MIME / DOCTYPE, something like: then your have several syntax errors: a load of </p> with no opening <p> you are closing divs </div> that haven't been opened then you should validate.
What bochgoch recommended (xml prolog specifically) would bork your whole site in IE since it goes into quirks if theres anything but the DOCTYPE first (or whitespace I believe). Use what he said but get rid of the first line, and you'll have a good ol "XHTML" page (that is, it would be HTML since the content-type specifies what type of page it is regardless of the code inside, and it's almost always text/html since IE doesnt support real xhtml which is why I recommend using HTML 4.01 Strict).
Remember if u post with tables and invalid xhtml code on the site it will become invalid, did u try making the same template into valid xhtml first before plugging it to wordpress ? I had hard time myself making wordpress xhtml but managed to make inner pages xhtml valid. Maybe u need to do the same ? Example would be : http://www.webdirectoryreviews.com/ loook at inner pages they are xhtml valid though.