DocType header for templates

From Joomla! Documentation

(Redirected from Which DocType header do I use for templates?)
Other languages:
English • ‎español • ‎français • ‎Nederlands

Current thinking is that HTML5 should be used for Joomla! templates.
Set your template to html5 output:

	$doc = JFactory::getDocument();

Recommended DocTypes

List of recommended DocTypes for different circumstances:

  • HTML5: <!DOCTYPE html>

References about DocTypes

References about recommended DocTypes: