DocType header for templates

From Joomla! Documentation

Revision as of 06:31, 18 August 2015 by MATsxm (talk | contribs) (Marked this version for translation)
Other languages:
English • ‎Nederlands • ‎español • ‎français

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

	$doc = JFactory::getDocument();

Recommended DocTypes[edit]

List of recommended DocTypes for different circumstances:

  • HTML5: <!DOCTYPE html>

References about DocTypes[edit]

References about recommended DocTypes: