Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
433 views
in Q2A Core by

 

need to change doctype for w3c validation

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

 

1 Answer

+1 vote
by

If you are comfortable using an advanced (PHP) theme, the DOCTYPE can be changed like this:

<?php
class qa_html_theme extends qa_html_theme_base {
 
  function doctype()
  {
    $this->output('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">');
    $this->output("\n");
  }
}
?>
...