Actions

DocType header for templates

From Joomla! Documentation

Other languages:
English • ‎français • ‎Nederlands

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

	$doc = JFactory::getDocument();
	$doc->setHtml5(true);

Recommended DocTypes

List of recommended DocTypes for different circumstances:

  • HTML5: <!DOCTYPE html>


References about DocTypes

References about recommended DocTypes: