DocType header for templates

From Joomla! Documentation

Revision as of 07:35, 18 August 2015 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

List of recommended DocTypes for different circumstances:

  • HTML5: <!DOCTYPE html>

References about DocTypes

References about recommended DocTypes: