I tested two of my sites in w3c validator. One site passed the test and other site gave me lot of error. Site2 was having the following doctype -//W3C//DTD HTML+RDFa 1.1//EN instead of HTML5. But site1 was having HTML5. How to Change the Doctype to HTML5 for Site2?
This would completely depend on the theme you are using on the Drupal site, as the markup of the site is handled on the theme layer. To answer your question, you'll need to either make your theme compatible to HTML5, or use any other HTML5 theme. |
||||
|
The HTML+RDFa 1.1 Doctype (which will be valid for HTML4 & 5) is still under development: As such The W3 validator doesn't recognise it, even though your document might well validate against the standard itself. So to answer your question, yes, Drupal (or what's more likely, the theme that you're using) is conforming to W3C standards, it's just that the spec hasn't been ratified yet. You might see advice out there telling you not to use that |
|||
|
I recently had to validate a Drupal website and was happy to find out that the W3C has a "Nu", experimental validator, which can be preset to take RDFa 1.1 into account (among other things). Using this validator instead of the default one made all of the RDFa-related validation errors disappear, but you have to manually set up the "Preset" parameter to |
|||
|