Manual:$wgHtml5

Details
Whether to output an HTML5 doctype. See HTML5.

If $wgWellFormedXml is true, the markup will be constructed so it can still be processed as XML.